| 1 |
/* { dg-options "-maltivec -mno-vsx" } */ |
| 2 |
/* { dg-require-effective-target int128 } */ |
| 3 |
/* { dg-require-effective-target powerpc_altivec } */ |
| 4 |
|
| 5 |
/* Verify there is no ICE but one expected error message instead. */ |
| 6 |
|
| 7 |
#include <altivec.h> |
| 8 |
|
| 9 |
extern vector signed __int128 res_vslll; |
| 10 |
extern unsigned long long aull[2]; |
| 11 |
|
| 12 |
void |
| 13 |
testVectorInt128Pack () |
| 14 |
{ |
| 15 |
res_vslll = __builtin_pack_vector_int128 (aull[0], aull[1]); /* { dg-error "'__builtin_pack_vector_int128' requires the '-mvsx' option" } */ |
| 16 |
} |
| 17 |
|