Hi Richard, Thanks for these patches - yes TI mode expansions can certainly be improved! So looking at your expansions for signed compares, why not copy the optimal sequence from 32-bit Arm?
Any compare can be done in at most 2 instructions:
void doit(void);
void f(long long a)
{
if (a <= 1)
doit();
}
f:
cmp r0, #2
sbcs r3, r1, #0
blt .L4
bx lr
.L4:
b doit
Cheers,
Wilco
