OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [mips/] [r10k-cache-barrier-4.c] - Blame information for rev 847

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-options "-O2 -mr10k-cache-barrier=store -mno-abicalls" } */
2
 
3
void bar (int *x);
4
 
5
/* Test that out-of-range stores to the frame are protected by cache
6
   barriers.  */
7
 
8
NOMIPS16 void
9
foo (int v)
10
{
11
  int x[8];
12
  bar (x);
13
  if (v & 1)
14
    x[0x100] = 0;
15
  if (v & 2)
16
    x[-0x100] = 0;
17
  bar (x);
18
}
19
 
20
/* { dg-final { scan-assembler-times "\tcache\t" 2 } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.