| 1 | # Source file used to test that former silent conversion of |
| 2 | # movi to orhi etc now gives range errors instead. |
| 3 | |
| 4 | foo: |
| 5 | # This doesn't get converted. |
| 6 | movi r2, 0x20 |
| 7 | |
| 8 | # This used to convert. |
| 9 | movi r2, 0x20000000 |
| 10 | |
| 11 | # addi used to convert only if the source register is r0. |
| 12 | addi r2, r0, 0xffff0000 |
| 13 | |
| 14 | # Logical ops used to convert to equivalent *hi for any register. |
| 15 | ori r2, r5, 0xffff0000 |
| 16 | xori r2, r10, 0xffff0000 |
| 17 | andi r2, r15, 0xffff0000 |
| 18 | |
| 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) |