Debian Codegraph @

gcc/testsuite/gcc.dg/vect/pr63341-1.c

raw
1 /* PR tree-optimization/63341 */
2
3 #include "tree-vect.h"
4
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 };
12
13 __attribute__((noinline, noclone)) void
14 foo ()
15 {
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 ();
21 }
22
23 int
24 main ()
25 {
26 check_vect ();
27 foo ();
28 return 0;
29 }
30