1 /* { dg-do compile { target { powerpc64*-*-* && lp64 } } } */
2 /* { dg-options "-mdejagnu-cpu=power9 -mvsx -O2" } */
3 /* { dg-require-effective-target powerpc_vsx } */
7 /* Optimize x = vec_insert (vec_extract (v2, N), v1, M) for SFmode. */
10 foo (vector
float v1
, vector
float v2
)
12 return vec_insert (vec_extract (v2
, 4), v1
, 0);
15 /* { dg-final { scan-assembler {\mxxinsertw\M} } } */
16 /* { dg-final { scan-assembler {\mxxextractuw\M} } } */
17 /* { dg-final { scan-assembler-not {\mlvewx\M} } } */
18 /* { dg-final { scan-assembler-not {\mlvx\M} } } */
19 /* { dg-final { scan-assembler-not {\mvperm\M} } } */
20 /* { dg-final { scan-assembler-not {\mvpermr\M} } } */
21 /* { dg-final { scan-assembler-not {\mstfs\M} } } */
22 /* { dg-final { scan-assembler-not {\mstxssp\M} } } */
23 /* { dg-final { scan-assembler-not {\mstxsspx\M} } } */