| 1 |
/* { dg-do compile { target { powerpc*-*-* } } } */ |
| 2 |
/* { dg-options "-mdejagnu-cpu=power8 -mvsx" } */ |
| 3 |
/* { dg-require-effective-target lp64 } */ |
| 4 |
/* { dg-require-effective-target powerpc_vsx } */ |
| 5 |
|
| 6 |
/* The vec_xl_len() function is not available on power8 configurations. */ |
| 7 |
|
| 8 |
#include <stddef.h> |
| 9 |
#include <altivec.h> |
| 10 |
|
| 11 |
__vector float |
| 12 |
fetch_data (float *address, size_t length) |
| 13 |
{ |
| 14 |
return __builtin_vec_lxvl (address, length); /* { dg-error "'__builtin_vsx_lxvl' requires" } */ |
| 15 |
} |