diff options
| author | Sintendo <3380580+Sintendo@users.noreply.github.com> | 2024-12-15 02:16:01 +0100 |
|---|---|---|
| committer | Sintendo <3380580+Sintendo@users.noreply.github.com> | 2024-12-15 02:24:30 +0100 |
| commit | d81213c4a58b29f1ae7ee1b73f9fb207cb762a38 (patch) | |
| tree | 59b71cc180fef1a68f822b64ff7a28b3481061d7 /Source/Android/jni/AndroidCommon/AndroidCommon.cpp | |
| parent | ada646a795d954bb6d00441200d71bad437c3d10 (diff) | |
JitArm64_Integer: Optimize subfic for -1
Another one backported from x86. Not sure why I didn't do this in #12891
already.
- Without carry
Before:
0x2a3a03fb mvn w27, w26
0x6b1a037b subs w27, w27, w26
After:
0x1280001b mov w27, #-0x1 ; =-1
- With carry
Before:
0x2a3b03f7 mvn w23, w27
0x6b1b02f7 subs w23, w23, w27
0x1a9f37f6 cset w22, hs
0x390bd3b6 strb w22, [x29, #0x2f4]
After:
0x12800017 mov w23, #-0x1 ; =-1
Diffstat (limited to 'Source/Android/jni/AndroidCommon/AndroidCommon.cpp')
0 files changed, 0 insertions, 0 deletions
