| 1 |
/* { dg-options "-mdejagnu-cpu=power9 -mabi=no-altivec" } */ |
| 2 |
/* { dg-require-effective-target powerpc_altivec } */ |
| 3 |
/* If the default cpu type is power10 or later, type __vector_pair is |
| 4 |
supported. To keep the test point available all the time, this case |
| 5 |
specifies -mdejagnu-cpu=power9 here. This needs -mabi=no-altivec |
| 6 |
to do the copying for pass-by-reference function argument on 32 bit |
| 7 |
environment. */ |
| 8 |
|
| 9 |
/* Verify there is no ICE on 32 bit and don't check the error messages |
| 10 |
on unsupported type since they could be fragile and are not test |
| 11 |
points of this case. */ |
| 12 |
|
| 13 |
/* { dg-excess-errors "pr108348-2" } */ |
| 14 |
|
| 15 |
extern void bar (__vector_pair v); |
| 16 |
|
| 17 |
void |
| 18 |
foo (void) |
| 19 |
{ |
| 20 |
__vector_pair v; |
| 21 |
bar (v); |
| 22 |
} |
| 23 |
|