1 /* { dg-do compile } */
2 /* { dg-options "-O2 -march=r2 -mbypass-cache" } */
4 /* Check that the compiler is aware of the reduced offset range for ldio/stio
5 instructions in the Nios II R2 encoding. */
7 unsigned int too_big (unsigned int *p
)
12 unsigned int small_enough (unsigned int *p
)
17 /* { dg-final { scan-assembler-not "\tldwio\t.*, 4096\\(r.*\\)" } } */
18 /* { dg-final { scan-assembler "\tldwio\t.*, 1024\\(r.*\\)" } } */