c++: Fix crash during NRV optimization with invalid input [PR117099, PR117129]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr109932-1.c
blobe2acf28950fb8922a4e8504e0658fc0f2b309bca
1 /* { dg-options "-maltivec -mno-vsx" } */
2 /* { dg-require-effective-target int128 } */
3 /* { dg-require-effective-target powerpc_altivec } */
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" } */