[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-mult-char.c
blob3f946e56fcf0957505fb1dd468ec7c9c22f8a880
1 /* Verify that overloaded built-ins for vec_mul with char
2 inputs produce the right results. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_altivec_ok } */
6 /* { dg-options "-maltivec" } */
8 #include <altivec.h>
10 vector signed char
11 test3 (vector signed char x, vector signed char y)
13 return vec_mul (x, y);
16 vector unsigned char
17 test6 (vector unsigned char x, vector unsigned char y)
19 return vec_mul (x, y);
22 /* { dg-final { scan-assembler-times "\[ \t\]vmulesb" 2 } } */
23 /* { dg-final { scan-assembler-times "\[ \t\]vmulosb" 2 } } */