Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/pr105627.c

raw
1 /* Specify -w to disable some warnings, such as: -Wpsabi. */
2 /* { dg-options "-Og -fcompare-debug -mdejagnu-cpu=power8 -w" } */
3
4 typedef unsigned char __attribute__ ((__vector_size__ (8))) U;
5 typedef unsigned char __attribute__ ((__vector_size__ (64))) V;
6
7 U u;
8 char c;
9 V v;
10
11 V
12 foo (void)
13 {
14 V w = c
15 & __builtin_shufflevector (u, (V){0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
16 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17 0, 0, 0, 0, 0, 0, 0, 5},
18 24, 24, 41, 45, 53, 60, 22, 35, 45, 12, 61,
19 9, 52, 15, 44, 46, 5, 5, 1, 0, 4, 9, 0, 8, 5,
20 7, 2, 5, 9, 2, 7, 7, 5, 6, 0, 2, 6, 1, 7, 7,
21 0, 4, 0, 1, 7, 2, 5, 3, 2, 3, 5, 6, 6, 6, 0,
22 6, 1, 9, 0, 5, 4, 3, 5, 4);
23 w = w + v;
24 return w;
25 }
26