Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr113044.c

raw
1 /* PR target/113044 */
2 /* { dg-do run } */
3 /* { dg-options "-O" } */
4
5 typedef unsigned char __attribute__((__vector_size__ (2))) V;
6
7 V
8 foo (char c, V v)
9 {
10 V x = v >> (v & 8);
11 volatile char d = c;
12 if (!d)
13 __builtin_abort();
14 return x;
15 }
16
17 int
18 main (void)
19 {
20 V x = foo (10, (V){3});
21 if (x[0] != 3 || x[1])
22 __builtin_abort();
23 return 0;
24 }