summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorLC <mathew1800@gmail.com>2020-06-21 01:58:51 +0200
committerGitHub <noreply@github.com>2020-06-21 01:58:51 +0200
commitc6ba7a228d791f5a21f83292d53f35d6695ec393 (patch)
tree36349414de9fa68144ad5b0c6e2f44d1956c77c9 /src/video_core
parentMerge pull request #4125 from lioncash/macro-shift (diff)
parentmacro_jit_x64: Use ecx for shift register (diff)
downloadyuzu-c6ba7a228d791f5a21f83292d53f35d6695ec393.tar
yuzu-c6ba7a228d791f5a21f83292d53f35d6695ec393.tar.gz
yuzu-c6ba7a228d791f5a21f83292d53f35d6695ec393.tar.bz2
yuzu-c6ba7a228d791f5a21f83292d53f35d6695ec393.tar.lz
yuzu-c6ba7a228d791f5a21f83292d53f35d6695ec393.tar.xz
yuzu-c6ba7a228d791f5a21f83292d53f35d6695ec393.tar.zst
yuzu-c6ba7a228d791f5a21f83292d53f35d6695ec393.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/macro/macro_jit_x64.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/macro/macro_jit_x64.cpp b/src/video_core/macro/macro_jit_x64.cpp
index 4eef342ec..389b58989 100644
--- a/src/video_core/macro/macro_jit_x64.cpp
+++ b/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) {
- 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);
shr(src, dst.cvt8());
@@ -258,7 +258,7 @@ void MacroJITx64Impl::Compile_ExtractShiftLeftImmediate(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);
if (opcode.bf_src_bit != 0) {