Merge aosp-toolchain/gcc/gcc-4_9 changes.
[official-gcc.git] / gcc-4_9 / gcc / testsuite / gcc.target / nios2 / nios2-cache-2.c
blob239c600ac56c2e6e56d1a05ddfe20d2612b05d29
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mno-cache-volatile" } */
3 /* { dg-final { scan-assembler "ldwio" } } */
4 /* { dg-final { scan-assembler "stwio" } } */
6 /* Make sure -mno-cache-volatile generates I/O variants of the load and
7 stores to foo. */
9 extern volatile int foo;
11 int
12 read_foo (void)
14 return foo;
17 void
18 write_foo (int x)
20 foo = x;