Adjust v850 rotate expander to allow more cases for V850E3V5
[official-gcc.git] / gcc / testsuite / gcc.target / nios2 / r2-io-range.c
blob2064ff6b0d4d69023cb6c2b1fc5b6c3353252bb0
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)
9 return *(p + 0x400);
12 unsigned int small_enough (unsigned int *p)
14 return *(p + 0x100);
17 /* { dg-final { scan-assembler-not "\tldwio\t.*, 4096\\(r.*\\)" } } */
18 /* { dg-final { scan-assembler "\tldwio\t.*, 1024\\(r.*\\)" } } */