summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2020-06-19 22:56:34 -0400
committerGravatar Lioncash2020-06-19 22:57:23 -0400
commit5a4e89b9018eec802ec445b5c7df7d270d35b4c1 (patch)
tree4f0edc35385db140aef8c5adaa62c9f46593a352 /src
parentmacro_jit_x64: Correct readability of Compile_ExtractShiftLeftRegister() (diff)
downloadyuzu-5a4e89b9018eec802ec445b5c7df7d270d35b4c1.tar.gz
yuzu-5a4e89b9018eec802ec445b5c7df7d270d35b4c1.tar.xz
yuzu-5a4e89b9018eec802ec445b5c7df7d270d35b4c1.zip
macro_jit_x64: Correct readability of Compile_ExtractShiftLeftImmediate()
Previously dst wasn't being used.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/macro/macro_jit_x64.cpp6
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) {
240} 240}
241 241
242void MacroJITx64Impl::Compile_ExtractShiftLeftImmediate(Macro::Opcode opcode) { 242void MacroJITx64Impl::Compile_ExtractShiftLeftImmediate(Macro::Opcode opcode) {
243 auto dst = Compile_GetRegister(opcode.src_a, eax); 243 const auto dst = Compile_GetRegister(opcode.src_a, eax);
244 auto src = Compile_GetRegister(opcode.src_b, RESULT); 244 const auto src = Compile_GetRegister(opcode.src_b, RESULT);
245 245
246 shr(src, al); 246 shr(src, dst.cvt8());
247 if (opcode.bf_size != 0 && opcode.bf_size != 31) { 247 if (opcode.bf_size != 0 && opcode.bf_size != 31) {
248 and_(src, opcode.GetBitfieldMask()); 248 and_(src, opcode.GetBitfieldMask());
249 } else if (opcode.bf_size == 0) { 249 } else if (opcode.bf_size == 0) {