Debian Codegraph @

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

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