summaryrefslogtreecommitdiff
path: root/Source/Android/jni/MainAndroid.cpp
diff options
context:
space:
mode:
authorSintendo <3380580+Sintendo@users.noreply.github.com>2025-02-01 21:11:23 +0100
committerSintendo <3380580+Sintendo@users.noreply.github.com>2025-02-02 12:57:59 +0100
commitb7c3f91643535b760a71de5b1faaae2b91ac7af2 (patch)
tree58d3f583ceeef4f318b98fa1465bacbaf89434a4 /Source/Android/jni/MainAndroid.cpp
parentc5870ed0c71d3821b792543631937110e2d27202 (diff)
JitArm64_Integer: cmpl - Subtract 12-bit constant
You can encode a 12-bit immediate in a SUB instruction on ARM64. 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: 0x5280003a mov w26, #0x1 ; =1 0xcb1a033b sub x27, x25, x26 After: 0xd100073b sub x27, x25, #0x1
Diffstat (limited to 'Source/Android/jni/MainAndroid.cpp')
0 files changed, 0 insertions, 0 deletions