Debian Codegraph @

gcc/testsuite/gcc.target/s390/pr115860-1.c

raw
1 /* { dg-do run } */
2 /* { dg-require-effective-target s390_vxe } */
3 /* { dg-options "-O2 -march=z14 -mzarch" } */
4
5 __attribute__ ((noipa))
6 long long trunctf (long double x)
7 {
8 /* Ensure via ++x that x is in a register. */
9 ++x;
10 return x;
11 }
12
13 __attribute__ ((noipa))
14 long long trunctf_from_mem (long double x)
15 {
16 return x;
17 }
18
19 int main (void)
20 {
21 if (trunctf (0x7ffffffffffffffeLL) != 0x7fffffffffffffffLL)
22 __builtin_abort ();
23 if (trunctf_from_mem (0x7fffffffffffffffLL) != 0x7fffffffffffffffLL)
24 __builtin_abort ();
25 return 0;
26 }