aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/msa-insert-split.c
blob: 9ad5987ac03767fcc041109c3cfa24aed6d935ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-fno-tree-vectorize -mfp64 -mhard-float -mmsa" } */
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */

typedef double v2f64 __attribute__ ((vector_size (16)));

void foo (double* arr, v2f64* vec)
{
  v2f64 v;
  v[0] = arr[0];
  v[1] = arr[1];
  *vec = v;
}

/* { dg-final { scan-assembler-not "insert.w" } } */
/* { dg-final { scan-assembler-times "insve.d" 2 } } */