Browse Source
Merge pull request #4133 from MerryMage/macrojit-shifts
macro_jit_x64: Use ecx for shift register
pull/15/merge
LC
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
src/video_core/macro/macro_jit_x64.cpp
|
|
@ -239,7 +239,7 @@ void MacroJITx64Impl::Compile_ExtractInsert(Macro::Opcode opcode) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void MacroJITx64Impl::Compile_ExtractShiftLeftImmediate(Macro::Opcode opcode) { |
|
|
void MacroJITx64Impl::Compile_ExtractShiftLeftImmediate(Macro::Opcode opcode) { |
|
|
const auto dst = Compile_GetRegister(opcode.src_a, eax); |
|
|
|
|
|
|
|
|
const auto dst = Compile_GetRegister(opcode.src_a, ecx); |
|
|
const auto src = Compile_GetRegister(opcode.src_b, RESULT); |
|
|
const auto src = Compile_GetRegister(opcode.src_b, RESULT); |
|
|
|
|
|
|
|
|
shr(src, dst.cvt8()); |
|
|
shr(src, dst.cvt8()); |
|
|
@ -258,7 +258,7 @@ void MacroJITx64Impl::Compile_ExtractShiftLeftImmediate(Macro::Opcode opcode) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void MacroJITx64Impl::Compile_ExtractShiftLeftRegister(Macro::Opcode opcode) { |
|
|
void MacroJITx64Impl::Compile_ExtractShiftLeftRegister(Macro::Opcode opcode) { |
|
|
const auto dst = Compile_GetRegister(opcode.src_a, eax); |
|
|
|
|
|
|
|
|
const auto dst = Compile_GetRegister(opcode.src_a, ecx); |
|
|
const auto src = Compile_GetRegister(opcode.src_b, RESULT); |
|
|
const auto src = Compile_GetRegister(opcode.src_b, RESULT); |
|
|
|
|
|
|
|
|
if (opcode.bf_src_bit != 0) { |
|
|
if (opcode.bf_src_bit != 0) { |
|
|
|