Commit | Line | Data |
---|---|---|
36591ba1 SL |
1 | # Test for Nios II 32-bit, 16 and 8-bit relocations |
2 | ||
3 | .set noat | |
4 | .set some_other_sym, 0x1000 | |
5 | .text | |
6 | .global _start | |
7 | _start: | |
8 | # unsigned 16-bit relocation | |
9 | andi r1, r1, some_sym | |
10 | andi r1, r1, min | |
11 | andi r1, r1, max | |
12 | andi r1, r1, some_sym + some_other_sym + 1 | |
13 | andi r1, r1, some_sym - some_other_sym + 1 | |
14 | ||
15 | ||
16 |