From 497e5a9f69af542101a12558b6647140f839c658 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Mon, 11 May 2015 22:13:55 -0700 Subject: [PATCH] Fixing cpu feature guards. --- src/xenia/cpu/backend/x64/x64_sequences.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenia/cpu/backend/x64/x64_sequences.cc b/src/xenia/cpu/backend/x64/x64_sequences.cc index 89d5e866b..25972a244 100644 --- a/src/xenia/cpu/backend/x64/x64_sequences.cc +++ b/src/xenia/cpu/backend/x64/x64_sequences.cc @@ -4425,7 +4425,7 @@ void EmitShlXX(X64Emitter& e, const ARGS& i) { [](X64Emitter& e, const REG& dest_src, const Reg8& src) { // shlx: $1 = $2 << $3 // shl: $1 = $1 << $2 - if (e.IsFeatureEnabled(kX64EmitAVX2)) { + if (e.IsFeatureEnabled(kX64EmitBMI2)) { if (dest_src.getBit() == 64) { e.shlx(dest_src.cvt64(), dest_src.cvt64(), src.cvt64()); } else { @@ -4479,7 +4479,7 @@ void EmitShrXX(X64Emitter& e, const ARGS& i) { [](X64Emitter& e, const REG& dest_src, const Reg8& src) { // shrx: op1 dest, op2 src, op3 count // shr: op1 src/dest, op2 count - if (e.IsFeatureEnabled(kX64EmitAVX2)) { + if (e.IsFeatureEnabled(kX64EmitBMI2)) { if (dest_src.getBit() == 64) { e.shrx(dest_src.cvt64(), dest_src.cvt64(), src.cvt64()); } else if (dest_src.getBit() == 32) {