Debian Codegraph @

gcc/testsuite/gcc.target/sparc/setcc-9.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target lp64 } */
3 /* { dg-options "-O1 -msubxc" } */
4
5 long foo2 (long a, long i)
6 {
7 return a - (i != 0);
8 }
9
10 long foo4 (long a, long b, long i)
11 {
12 return a - b - (i != 0);
13 }
14
15 /* { dg-final { scan-assembler-times "subxc\t%" 2 } } */
16 /* { dg-final { scan-assembler-times "cmp\t%" 2 } } */
17 /* { dg-final { scan-assembler-not "sub\t%" } } */