| 1 |
/* { dg-do run { target powerpc*-*-* } } */ |
| 2 |
/* { dg-options "-maltivec" } */ |
| 3 |
/* { dg-require-effective-target powerpc_altivec } */ |
| 4 |
/* { dg-skip-if "need to be able to execute AltiVec" { ! vmx_hw } } */ |
| 5 |
|
| 6 |
/* With altivec turned on, Darwin wants to save the world but we did not mark lr as being saved any more |
| 7 |
as saving the lr is not needed for saving altivec registers. */ |
| 8 |
|
| 9 |
int main (void) |
| 10 |
{ |
| 11 |
__label__ l1; |
| 12 |
void __attribute__((used)) q(void) |
| 13 |
{ |
| 14 |
goto l1; |
| 15 |
} |
| 16 |
|
| 17 |
l1:; |
| 18 |
return 0; |
| 19 |
} |