[AArch64] Use SUBS for parallel subtraction and comparison with immediate
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / subs_compare_2.c
blob60c6d9e5ccd8fce42c388c831a8060dead128491
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 int
5 foo (int a, int b)
7 int x = a - 4;
8 if (a < 4)
9 return x;
10 else
11 return 0;
14 /* { dg-final { scan-assembler-times "subs\\tw\[0-9\]+, w\[0-9\]+, #4" 1 } } */
15 /* { dg-final { scan-assembler-not "cmp\\tw\[0-9\]+, w\[0-9\]+" } } */