| 1 |
/* { dg-do compile { target { powerpc*-*-* } } } */ |
| 2 |
/* { dg-options "-mdejagnu-cpu=power9 -mvsx" } */ |
| 3 |
/* { dg-require-effective-target ilp32 } */ |
| 4 |
/* { dg-require-effective-target powerpc_vsx } */ |
| 5 |
|
| 6 |
#include <stddef.h> |
| 7 |
#include <altivec.h> |
| 8 |
|
| 9 |
/* This test only runs on 32-bit configurations, where a compiler |
| 10 |
error should be issued because this built-in function is not |
| 11 |
available on 32-bit configurations. */ |
| 12 |
|
| 13 |
int |
| 14 |
fetch_data (float *address, size_t length) |
| 15 |
{ |
| 16 |
return __builtin_vec_lxvl (address, length); /* { dg-error "'__builtin_vsx_lxvl' requires the" } */ |
| 17 |
} |