aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/lhs-1.c
blob: 4e13fd2fb708131a22974cb7caa0d0ebd303df3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
/* { dg-options "-O2 -mdejagnu-cpu=power5" } */
/* { dg-final { scan-assembler-times "nop" 3 } } */

/* Test generation of nops in load hit store situation.  Make sure enough nop
   insns are generated to move the load to a new dispatch group.  With the
   simple stw/lwz pair below, that would be 3 nop insns for Power5.  */

unsigned int f (volatile unsigned int *u, unsigned int u2)
{
  *u = u2;
  return *u;
}