| 1 |
/* { dg-options "-maltivec -mdejagnu-cpu=power6" } */ |
| 2 |
/* { dg-require-effective-target powerpc_altivec } */ |
| 3 |
/* If the default cpu type is power10 or later, MMA is enabled by default. |
| 4 |
To keep the test point available all the time, this case specifies |
| 5 |
-mdejagnu-cpu=power6 to make it be tested without MMA. */ |
| 6 |
|
| 7 |
/* Verify there is no ICE and don't check the error messages on MMA |
| 8 |
requirement since they could be fragile and are not test points |
| 9 |
of this case. */ |
| 10 |
/* { dg-excess-errors "pr103353" } */ |
| 11 |
|
| 12 |
void |
| 13 |
foo (__vector_pair *dst, double *x) |
| 14 |
{ |
| 15 |
dst[0] = __builtin_vsx_lxvp (0, (__vector_pair *)(void *)x); |
| 16 |
} |
| 17 |
|
| 18 |
void |
| 19 |
bar (__vector_pair *src, double *x) |
| 20 |
{ |
| 21 |
__builtin_vsx_stxvp (src[0], 0, (__vector_pair *)(void *)x); |
| 22 |
} |