Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr110083.c

raw
1 /* { dg-do compile { target int128 } } */
2 /* { dg-options "-O2 -msse4 -mstv -mno-stackrealign" } */
3 typedef int TItype __attribute__ ((mode (TI)));
4 typedef unsigned int UTItype __attribute__ ((mode (TI)));
5
6 void foo (void)
7 {
8 static volatile TItype ivin, ivout;
9 static volatile float fv1, fv2;
10 ivin = ((TItype) (UTItype) ~ (((UTItype) ~ (UTItype) 0) >> 1));
11 fv1 = ((TItype) (UTItype) ~ (((UTItype) ~ (UTItype) 0) >> 1));
12 fv2 = ivin;
13 ivout = fv2;
14 if (ivin != ((TItype) (UTItype) ~ (((UTItype) ~ (UTItype) 0) >> 1))
15 || ((((128) > sizeof (TItype) * 8 - 1)) && ivout != ivin)
16 || ((((128) > sizeof (TItype) * 8 - 1))
17 && ivout !=
18 ((TItype) (UTItype) ~ (((UTItype) ~ (UTItype) 0) >> 1)))
19 || fv1 !=
20 (float) ((TItype) (UTItype) ~ (((UTItype) ~ (UTItype) 0) >> 1))
21 || fv2 !=
22 (float) ((TItype) (UTItype) ~ (((UTItype) ~ (UTItype) 0) >> 1))
23 || fv1 != fv2)
24 __builtin_abort ();
25 }
26