openmp: Fix signed/unsigned warning
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr63341-1.c
blobbb54e6a1b6469cc7d8428a7e1f13a565cff13903
1 /* PR tree-optimization/63341 */
3 #include "tree-vect.h"
5 typedef union U { unsigned short s; unsigned char c; } __attribute__((packed)) U;
6 struct S { char e __attribute__((aligned (64))); U s[32]; };
7 struct S t = {0, {{1}, {2}, {3}, {4}, {5}, {6}, {7}, {8},
8 {9}, {10}, {11}, {12}, {13}, {14}, {15}, {16},
9 {17}, {18}, {19}, {20}, {21}, {22}, {23}, {24},
10 {25}, {26}, {27}, {28}, {29}, {30}, {31}, {32}}};
11 unsigned short d[32] = { 1 };
13 __attribute__((noinline, noclone)) void
14 foo ()
16 int i;
17 for (i = 0; i < 32; i++)
18 d[i] = t.s[i].s;
19 if (__builtin_memcmp (d, t.s, sizeof d))
20 abort ();
23 int
24 main ()
26 check_vect ();
27 foo ();
28 return 0;