Debian Codegraph @

gcc/testsuite/gcc.target/loongarch/vect-shuf-fp.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-mlasx -O3" } */
3 /* { dg-final { scan-assembler "vshuf\.w" } } */
4
5 #define V __attribute__ ((vector_size (16)))
6
7 int a V;
8 float b V;
9 float c V;
10 float d V;
11
12 void
13 test (void)
14 {
15 d = __builtin_shuffle (b, c, a);
16 }