Debian Codegraph @

gcc/testsuite/gcc.dg/torture/pr118476-1.c

raw
1 /* { dg-do compile } */
2
3 /* PR tree-optimization/118476 */
4
5 typedef unsigned long long poly64x1 __attribute__((__vector_size__(1*sizeof(long long))));
6
7 poly64x1 vext_p64(poly64x1 a, poly64x1 b, const int n)
8 {
9 poly64x1 r = a;
10 unsigned src = (unsigned)n;
11 long long t = b[0];
12 r[0] = (src < 1) ? a[src] : t;
13 return r;
14 }