diff options
author | Lioncash <mathew1800@gmail.com> | 2020-06-20 04:56:34 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-06-20 04:57:23 +0200 |
commit | 5a4e89b9018eec802ec445b5c7df7d270d35b4c1 (patch) | |
tree | 4f0edc35385db140aef8c5adaa62c9f46593a352 /src/video_core/macro | |
parent | macro_jit_x64: Correct readability of Compile_ExtractShiftLeftRegister() (diff) | |
download | yuzu-5a4e89b9018eec802ec445b5c7df7d270d35b4c1.tar yuzu-5a4e89b9018eec802ec445b5c7df7d270d35b4c1.tar.gz yuzu-5a4e89b9018eec802ec445b5c7df7d270d35b4c1.tar.bz2 yuzu-5a4e89b9018eec802ec445b5c7df7d270d35b4c1.tar.lz yuzu-5a4e89b9018eec802ec445b5c7df7d270d35b4c1.tar.xz yuzu-5a4e89b9018eec802ec445b5c7df7d270d35b4c1.tar.zst yuzu-5a4e89b9018eec802ec445b5c7df7d270d35b4c1.zip |
Diffstat (limited to 'src/video_core/macro')
-rw-r--r-- | src/video_core/macro/macro_jit_x64.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/macro/macro_jit_x64.cpp b/src/video_core/macro/macro_jit_x64.cpp index 1ecf1d27f..202fbbc21 100644 --- a/src/video_core/macro/macro_jit_x64.cpp +++ b/src/video_core/macro/macro_jit_x64.cpp @@ -240,10 +240,10 @@ void MacroJITx64Impl::Compile_ExtractInsert(Macro::Opcode opcode) { } void MacroJITx64Impl::Compile_ExtractShiftLeftImmediate(Macro::Opcode opcode) { - auto dst = Compile_GetRegister(opcode.src_a, eax); - auto src = Compile_GetRegister(opcode.src_b, RESULT); + const auto dst = Compile_GetRegister(opcode.src_a, eax); + const auto src = Compile_GetRegister(opcode.src_b, RESULT); - shr(src, al); + shr(src, dst.cvt8()); if (opcode.bf_size != 0 && opcode.bf_size != 31) { and_(src, opcode.GetBitfieldMask()); } else if (opcode.bf_size == 0) { |