[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr96933-2.c
blob2eacc24296d3c2979ff208b4c9966b5b03ecfddd
1 /* { dg-do compile } */
2 /* { dg-require-effective-target powerpc_vsx_ok } */
3 /* { dg-options "-O2 -mdejagnu-cpu=power8 -mvsx" } */
5 /* Test vector constructions with char/short type values whether use direct
6 move instructions like mtvsrd/mtvsrwz on Power8, rather than transfering
7 with memory store/load with stb/sth and vector load. */
9 #include "pr96933.h"
11 /* { dg-final { scan-assembler-times {\mmtvsrd\M} 48 {target lp64 } } } */
12 /* { dg-final { scan-assembler-times {\mmtvsrwz\M} 48 {target {! lp64 } } } } */
13 /* { dg-final { scan-assembler-times {\mxxpermdi\M} 4 } } */
14 /* { dg-final { scan-assembler-not {\mstb\M} } } */
15 /* { dg-final { scan-assembler-not {\msth\M} } } */
16 /* { dg-final { scan-assembler-not {\mrlwinm\M} } } */