[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr109932-1.c
blob374d9f606183436873ff61daa74070237b0b29d9
1 /* { dg-require-effective-target int128 } */
2 /* { dg-require-effective-target powerpc_altivec_ok } */
3 /* { dg-options "-maltivec -mno-vsx" } */
5 /* Verify there is no ICE but one expected error message instead. */
7 #include <altivec.h>
9 extern vector signed __int128 res_vslll;
10 extern unsigned long long aull[2];
12 void
13 testVectorInt128Pack ()
15 res_vslll = __builtin_pack_vector_int128 (aull[0], aull[1]); /* { dg-error "'__builtin_pack_vector_int128' requires the '-mvsx' option" } */