summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/r10k-cache-barrier-11.c
blob: d1082d910d8825a10282649a7e14bb73a8215704 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-options "-O2 -mr10k-cache-barrier=store -mno-abicalls" } */

/* Test that loads are not unnecessarily protected.  */

int bar (int);

NOMIPS16 void
foo (int *ptr)
{
  *ptr = bar (*ptr);
}

/* { dg-final { scan-assembler-times "\tcache\t" 1 } } */