[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-mult-int.c
blob49c28f032ce585b82702c7d97434e8d6e4f05ba1
1 /* Verify that overloaded built-ins for vec_mul with int
2 inputs produce the right results. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_vsx_ok } */
6 /* { dg-options "-mvsx" } */
7 /* { dg-additional-options "-mdejagnu-cpu=power8" { target { ! has_arch_pwr8 } } } */
9 #include <altivec.h>
11 vector signed int
12 test3 (vector signed int x, vector signed int y)
14 return vec_mul (x, y);
17 vector unsigned int
18 test6 (vector unsigned int x, vector unsigned int y)
20 return vec_mul (x, y);
23 /* { dg-final { scan-assembler-times "\[ \t\]vmuluwm" 2 } } */