Commit | Line | Data |
---|---|---|
1 | # Source file used to test silent conversion of | |
2 | # movi to orhi etc | |
3 | ||
4 | foo: | |
5 | # this doesn't get converted | |
6 | movi r2, 0x20 | |
7 | ||
8 | # this does | |
9 | movi r2, 0x20000000 | |
10 | ||
11 | # addi should convert only if the source register is r0 | |
12 | addi r2, r0, 0xffff0000 | |
13 | # but we can't test for non-conversion because the value would | |
14 | # be out of range | |
15 | ||
16 | # logical ops should convert for any register | |
17 | ori r2, r5, 0xffff0000 | |
18 | xori r2, r10, 0xffff0000 | |
19 | andi r2, r15, 0xffff0000 | |
20 | ||
21 |