diff options
| author | 2020-06-19 22:33:01 -0400 | |
|---|---|---|
| committer | 2020-06-19 22:56:55 -0400 | |
| commit | 140f953b6a70fa2eaf3f2711993913f6f0ca7a75 (patch) | |
| tree | 74e4a7438855b20d090bdbb1a48218392a3afeba | |
| parent | Merge pull request #4080 from ogniK5377/audren-RendererInfo (diff) | |
| download | yuzu-140f953b6a70fa2eaf3f2711993913f6f0ca7a75.tar.gz yuzu-140f953b6a70fa2eaf3f2711993913f6f0ca7a75.tar.xz yuzu-140f953b6a70fa2eaf3f2711993913f6f0ca7a75.zip | |
macro_jit_x64: Correct readability of Compile_ExtractShiftLeftRegister()
Previously dst wasn't being used.
Diffstat (limited to '')
| -rw-r--r-- | src/video_core/macro/macro_jit_x64.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/macro/macro_jit_x64.cpp b/src/video_core/macro/macro_jit_x64.cpp index bee34a7c0..1ecf1d27f 100644 --- a/src/video_core/macro/macro_jit_x64.cpp +++ b/src/video_core/macro/macro_jit_x64.cpp | |||
| @@ -259,8 +259,8 @@ void MacroJITx64Impl::Compile_ExtractShiftLeftImmediate(Macro::Opcode opcode) { | |||
| 259 | } | 259 | } |
| 260 | 260 | ||
| 261 | void MacroJITx64Impl::Compile_ExtractShiftLeftRegister(Macro::Opcode opcode) { | 261 | void MacroJITx64Impl::Compile_ExtractShiftLeftRegister(Macro::Opcode opcode) { |
| 262 | auto dst = Compile_GetRegister(opcode.src_a, eax); | 262 | const auto dst = Compile_GetRegister(opcode.src_a, eax); |
| 263 | auto src = Compile_GetRegister(opcode.src_b, RESULT); | 263 | const auto src = Compile_GetRegister(opcode.src_b, RESULT); |
| 264 | 264 | ||
| 265 | if (opcode.bf_src_bit != 0) { | 265 | if (opcode.bf_src_bit != 0) { |
| 266 | shr(src, opcode.bf_src_bit); | 266 | shr(src, opcode.bf_src_bit); |
| @@ -269,7 +269,8 @@ void MacroJITx64Impl::Compile_ExtractShiftLeftRegister(Macro::Opcode opcode) { | |||
| 269 | if (opcode.bf_size != 31) { | 269 | if (opcode.bf_size != 31) { |
| 270 | and_(src, opcode.GetBitfieldMask()); | 270 | and_(src, opcode.GetBitfieldMask()); |
| 271 | } | 271 | } |
| 272 | shl(src, al); | 272 | shl(src, dst.cvt8()); |
| 273 | |||
| 273 | Compile_ProcessResult(opcode.result_operation, opcode.dst); | 274 | Compile_ProcessResult(opcode.result_operation, opcode.dst); |
| 274 | } | 275 | } |
| 275 | 276 | ||