summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsModGroup.cpp
diff options
context:
space:
mode:
authorSintendo <3380580+Sintendo@users.noreply.github.com>2025-02-01 22:02:43 +0100
committerSintendo <3380580+Sintendo@users.noreply.github.com>2025-02-02 12:57:59 +0100
commit7ce7da629e8059a7c819ea26436f4426648d22b5 (patch)
treea0f65a7461a06bb7da6c2e25776784b49ed02c69 /Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsModGroup.cpp
parentb7c3f91643535b760a71de5b1faaae2b91ac7af2 (diff)
JitArm64_Integer: cmpl - Subtract shifted 12-bit constant
You can encode a shifted 12-bit immediate in a SUB instruction on ARM64. We exploit this to avoid materializing the immediate. This approach saves an instruction if it does not need to be materialized in a register afterwards. Otherwise, we just materialize it later and the total number of instructions stays the same. Before: 0x52a00218 mov w24, #0x100000 ; =1048576 0xcb180379 sub x25, x27, x24 After: 0xd1440379 sub x25, x27, #0x100, lsl #12 ; =0x100000
Diffstat (limited to 'Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsModGroup.cpp')
0 files changed, 0 insertions, 0 deletions