[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / vec-mult-char-2.c
blobdcfa270a1ee2e7b7e15eab1444afa62363e3c71c
1 /* { dg-do compile { target { powerpc*-*-* && vmx_hw } } } */
2 /* { dg-require-effective-target powerpc_altivec_ok } */
3 /* { dg-options "-maltivec" } */
5 #include <altivec.h>
7 vector unsigned char vmului(vector unsigned char v,
8 vector unsigned char i)
10 return v * i;
13 vector signed char vmulsi(vector signed char v,
14 vector signed char i)
16 return v * i;
19 /* { dg-final { scan-assembler-times "vmulesb" 2 } } */
20 /* { dg-final { scan-assembler-times "vmulosb" 2 } } */
21 /* { dg-final { scan-assembler-times {\m(?:v|xx)permr?\M} 2 } } */