Debian Codegraph @

gcc/testsuite/gcc.target/mips/msa-insert-split.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fno-tree-vectorize -mfp64 -mhard-float -mmsa" } */
3 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
4
5 typedef double v2f64 __attribute__ ((vector_size (16)));
6
7 void foo (double* arr, v2f64* vec)
8 {
9 v2f64 v;
10 v[0] = arr[0];
11 v[1] = arr[1];
12 *vec = v;
13 }
14
15 /* { dg-final { scan-assembler-not "insert.w" } } */
16 /* { dg-final { scan-assembler-times "insve.d" 2 } } */