| 1 |
/* { dg-do compile { target { powerpc*-*-* } } } */ |
| 2 |
/* { dg-skip-if "" { powerpc*-*-darwin* } } */ |
| 3 |
/* { dg-options "-O2 -mdejagnu-cpu=power5" } */ |
| 4 |
/* { dg-final { scan-assembler-times "nop" 3 } } */ |
| 5 |
|
| 6 |
/* Test generation of nops in load hit store situation. Make sure enough nop |
| 7 |
insns are generated to move the load to a new dispatch group. With the |
| 8 |
simple stw/lwz pair below, that would be 3 nop insns for Power5. */ |
| 9 |
|
| 10 |
unsigned int f (volatile unsigned int *u, unsigned int u2) |
| 11 |
{ |
| 12 |
*u = u2; |
| 13 |
return *u; |
| 14 |
} |