Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/xtheadvector/pr123971.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O -mcpu=xt-c920 -mrvv-vector-bits=zvl" } */
3
4 __attribute__((__vector_size__(sizeof(int)))) int u;
5 __attribute__((__vector_size__(4 * sizeof(int)))) int v;
6 __attribute__((__vector_size__(8 * sizeof(int)))) int w;
7
8 void
9 foo()
10 {
11 v ^= __builtin_shufflevector(u, w % 3, 4, 3, 4, 1);
12 }