1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 /* { dg-final { scan-assembler-not "ldwio" } } */
4 /* { dg-final { scan-assembler-not "stwio" } } */
5
6 /* Make sure the default behavior is not to generate I/O variants of
7 the load and stores to foo. */
8
9 extern volatile int foo;
10
11 int
12 read_foo (void)
13 {
14 return foo;
15 }
16
17 void
18 write_foo (int x)
19 {
20 foo = x;
21 }