Fix ICE in substring-handling building 502.gcc_r (PR 87562)
[official-gcc.git] / gcc / testsuite / c-c++-common / builtin-shuffle-1.c
blobdf9b3a17469faf28c078a0062a6fc172870e5df2
1 /* PR c++/78089 */
2 /* { dg-do run } */
3 /* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
5 typedef int V __attribute__((vector_size (4 * __SIZEOF_INT__)));
6 V a, b, c;
8 int
9 foo ()
11 return __builtin_shuffle (a, b, c)[3];
14 int
15 main ()
17 a = (V) { 1, 2, 3, 4 };
18 b = (V) { 5, 6, 7, 8 };
19 c = (V) { 7, 2, 5, 6 };
20 if (foo () != 7)
21 __builtin_abort ();
22 return 0;