Debian Codegraph @

gcc/testsuite/gcc.target/s390/arch13/sel-1.c

raw
1 /* { dg-do compile } */
2
3 int
4 sel32 (int a, int then, int els)
5 {
6 return a > 42 ? then : els;
7 }
8
9 /* FIXME: This currently fails since ifcvt considers that combination
10 too expensive. THe reason is that additional load instructions
11 emitted by ifcvt are part of the costs although these should get
12 removed later. */
13 /* { dg-final { scan-assembler-times "\tselr(?:h|le)\t" 1 } } */
14
15 long long
16 sel64 (int a, long long then, long long els)
17 {
18 return a > 42 ? then : els;
19 }
20
21 /* { dg-final { scan-assembler-times "\tselgr(?:h|le)\t" 1 } } */