gcc/ChangeLog:
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / lhs-1.c
blob9fefbbf373a461dc42af3917db05a5837554fc23
1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power5" } } */
4 /* { dg-options "-O2 -mcpu=power5" } */
5 /* { dg-final { scan-assembler-times "nop" 3 } } */
7 /* Test generation of nops in load hit store situation. Make sure enough nop
8 insns are generated to move the load to a new dispatch group. With the
9 simple stw/lwz pair below, that would be 3 nop insns for Power5. */
11 unsigned int f (volatile unsigned int *u, unsigned int u2)
13 *u = u2;
14 return *u;