Commit | Line | Data |
---|---|---|
d306ce58 SL |
1 | # Source file used to test that former silent conversion of |
2 | # movi to orhi etc now gives range errors instead. | |
36591ba1 SL |
3 | |
4 | foo: | |
d306ce58 | 5 | # This doesn't get converted. |
36591ba1 SL |
6 | movi r2, 0x20 |
7 | ||
d306ce58 | 8 | # This used to convert. |
36591ba1 SL |
9 | movi r2, 0x20000000 |
10 | ||
d306ce58 | 11 | # addi used to convert only if the source register is r0. |
36591ba1 | 12 | addi r2, r0, 0xffff0000 |
36591ba1 | 13 | |
d306ce58 | 14 | # Logical ops used to convert to equivalent *hi for any register. |
36591ba1 SL |
15 | ori r2, r5, 0xffff0000 |
16 | xori r2, r10, 0xffff0000 | |
17 | andi r2, r15, 0xffff0000 | |
18 | ||
d306ce58 SL |
19 | # This one used to be buggy and convert even though it wasn't supposed to, |
20 | # because it was failing to take the %lo relocation into account. | |
21 | ori r23,r23,%lo(0x12340000) |