Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / pr111015.c
blob599a14e6ecc27f52f30eaa10333b901777ab1702
1 /* PR tree-optimization/111015 */
2 /* { dg-do run { target int128 } } */
3 /* { dg-options "-O2" } */
5 struct S { unsigned a : 4, b : 4; unsigned __int128 c : 70; } d;
7 __attribute__((noipa)) void
8 foo (unsigned __int128 x, unsigned char y, unsigned char z)
10 d.a = y;
11 d.b = z;
12 d.c = x;
15 int
16 main ()
18 foo (-1, 12, 5);
19 if (d.a != 12
20 || d.b != 5
21 || d.c != (-1ULL | (((unsigned __int128) 0x3f) << 64)))
22 __builtin_abort ();
23 foo (0x123456789abcdef0ULL | (((unsigned __int128) 26) << 64), 7, 11);
24 if (d.a != 7
25 || d.b != 11
26 || d.c != (0x123456789abcdef0ULL | (((unsigned __int128) 26) << 64)))
27 __builtin_abort ();