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 17:02:10 +0100
committerSintendo <3380580+Sintendo@users.noreply.github.com>2025-02-02 12:01:05 +0100
commit01eed0a7585fbd3031e850ee8f14778e9e46a0e4 (patch)
tree9347937d7ac2b3b6b249a6eb11ec7ac7505fc6a6 /Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsModGroup.cpp
parent352cbc4772378d5048a2d8f80f5b5938f6946c5e (diff)
JitArm64_Integer: cmp - Add 12-bit constant
You can encode a 12-bit immediate in an ADD instruction on ARM64. If the negated constant fits in this range, we can 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: 0x12800019 mov w25, #-0x1 ; =-1 0x93407f5b sxtw x27, w26 0xcb39c37b sub x27, x27, w25, sxtw After: 0x93407f5b sxtw x27, w26 0x9100077b add x27, x27, #0x1
Diffstat (limited to 'Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsModGroup.cpp')
0 files changed, 0 insertions, 0 deletions