Fix ICE in substring-handling building 502.gcc_r (PR 87562)
[official-gcc.git] / gcc / testsuite / gcc.dg / pr78540.c
blob68bd9a449c450c83554f120c94d939056588682d
1 /* PR middle-end/78540 */
2 /* { dg-do compile { target int128 } } */
3 /* { dg-options "-O2 -Wno-psabi" } */
4 /* { dg-additional-options "-march=core2" { target i?86-*-* x86_64-*-* } } */
6 typedef unsigned __int128 V __attribute__ ((vector_size (64)));
7 V g;
9 static inline V
10 foo (V a)
12 V b, c;
13 c[0] = 0;
14 a += 2281559097;
15 c ^= 0;
16 b[0] = 0;
17 return 1 + c + b + a;
21 bar ()
23 V a = g, b = g;
24 a[1] ^= 1;
25 b[foo (a)[0] & 3] |= 1;
26 return b;