dolphin/Source
Sintendo 50f7a7d248 Jit64: addx - Prefer smaller MOV+ADD sequence
ADD has a smaller encoding for immediates that can be expressed as an
8-bit signed integer (in other words, between -128 and 127). MOV lacks
this compact representation.

Since addition allows us to swap the source registers, we can always get
the shortest sequence here by carefully checking if we're dealing with a
small immediate first. If we are, move the other source into the
destination and add the small immediate onto that. For large immediates
the reverse is preferrable.

Before:
41 BE 40 00 00 00    mov         r14d,40h
44 03 75 A8          add         r14d,dword ptr [rbp-58h]

After:
44 8B 75 A8          mov         r14d,dword ptr [rbp-58h]
41 83 C6 40          add         r14d,40h

Before:
44 8B 7D F8          mov         r15d,dword ptr [rbp-8]
41 81 C7 00 68 00 CC add         r15d,0CC006800h

After:
41 BF 00 68 00 CC    mov         r15d,0CC006800h
44 03 7D F8          add         r15d,dword ptr [rbp-8]
2020-04-21 22:42:02 +02:00
..
Android Merge pull request #8735 from Ebola16/INIT 2020-04-17 11:31:18 +02:00
Core Jit64: addx - Prefer smaller MOV+ADD sequence 2020-04-21 22:42:02 +02:00
DSPSpy DSPSpy: Remove unused stubs 2019-12-30 13:33:43 +01:00
DSPTool Add an ARM64 target to Visual Studio projects 2019-12-28 19:20:41 +10:00
PCH Add an ARM64 target to Visual Studio projects 2019-12-28 19:20:41 +10:00
UnitTests IOS/FS: Fix CreateFullPath to not create directories that already exist 2020-01-30 18:07:03 +01:00
VSProps Merge pull request #8427 from CookiePLMonster/wil-submodule 2020-03-15 23:28:53 +01:00
.clang-format Require clang-format 9 and reformat source code 2020-01-08 22:18:15 +01:00
CMakeLists.txt CMake: add DOLPHIN_CXX_FLAGS option 2020-02-09 01:03:36 +00:00
dolphin-emu.sln DolphinQt: Support compiling on ARM64 2020-01-12 15:23:42 +10:00