diff options
| author | Sintendo <bram.speeckaert@gmail.com> | 2020-11-18 23:20:30 +0100 |
|---|---|---|
| committer | Sintendo <bram.speeckaert@gmail.com> | 2020-12-25 19:30:51 +0100 |
| commit | 8ac40162da0b43ebfb668d6858639d9b49c491f5 (patch) | |
| tree | 266fef5ac679f2a28d07b1436dd6d8699b78a93c /Source/Core/InputCommon/ControllerInterface | |
| parent | b968120f8a2f9925bd218357a095a41e29449c8e (diff) | |
Jit64: srawx - Handle constant input registers
If both input registers hold known values at compile time, we can just
calculate the result on the spot.
Code has mostly been copied from JitArm64 where it had already been implemented.
Before:
BF FF FF FF FF mov edi,0FFFFFFFFh
8B C7 mov eax,edi
C1 FF 10 sar edi,10h
C1 E0 10 shl eax,10h
85 F8 test eax,edi
0F 95 45 58 setne byte ptr [rbp+58h]
After:
C6 45 58 01 mov byte ptr [rbp+58h],1
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface')
0 files changed, 0 insertions, 0 deletions
