Issue |
140833
|
Summary |
ccmp should adjust for cases where it is checking for -32
|
Labels |
new issue
|
Assignees |
|
Reporter |
AZero13
|
We can adjust this by one and do a ccmn, but that would involve changing the cmp, which we do not adjust except in rare cases.
https://godbolt.org/z/r5q9v83EE
cmp w0, w2
mov w8, #-32
ccmp w1, w8, #4, lt
csel w0, w1, w0, gt
ret
we can do
cmp w0, w2
ccmn w1, #31, 1, lt
csel w0, w0, w1, lt
ret
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs