Debian Codegraph @

gcc/testsuite/gcc.target/nvptx/neg-selp.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 int neg(int x, int y)
5 {
6 int t = (x == y) ? 1 : 0;
7 return -t;
8 }
9
10 int not(int x, int y)
11 {
12 int t = (x == y) ? 1 : 0;
13 return ~t;
14 }
15
16 /* { dg-final { scan-assembler-not "neg.s32" } } */
17 /* { dg-final { scan-assembler-not "not.b32" } } */