| 1 |
/* PR target/101849 */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-require-effective-target power10_ok } */ |
| 4 |
/* { dg-options "-O2 -mdejagnu-cpu=power10" } */ |
| 5 |
|
| 6 |
/* Verify we do not ICE on the tests below. */ |
| 7 |
|
| 8 |
void |
| 9 |
foo (__vector_pair *dst, double *x, long offset) |
| 10 |
{ |
| 11 |
dst[0] = __builtin_vsx_lxvp (0, (__vector_pair *)(void *)x); |
| 12 |
dst[1] = __builtin_vsx_lxvp (32, (__vector_pair *)(void *)x); |
| 13 |
dst[2] = __builtin_vsx_lxvp (offset, (__vector_pair *)(void *)x); |
| 14 |
} |
| 15 |
|
| 16 |
void |
| 17 |
bar (__vector_pair *src, double *x, long offset) |
| 18 |
{ |
| 19 |
__builtin_vsx_stxvp (src[0], 0, (__vector_pair *)(void *)x); |
| 20 |
__builtin_vsx_stxvp (src[1], 32, (__vector_pair *)(void *)x); |
| 21 |
__builtin_vsx_stxvp (src[2], offset, (__vector_pair *)(void *)x); |
| 22 |
} |