Commit | Line | Data |
---|---|---|
36591ba1 SL |
1 | #name: NIOS2 relax_ujmp |
2 | #as: -relax-all | |
3 | #ld: --relax -Trelax_jmp.ld | |
4 | #source: relax_ujmp.s | |
5 | #objdump: -dr --prefix-addresses | |
6 | ||
7 | # Test relaxation of unconditional jumps | |
8 | ||
9 | .*: +file format elf32-littlenios2 | |
10 | ||
11 | Disassembly of section text2: | |
12 | 00000000 <[^>]*> br 00008000 <[^>]*> | |
13 | 00000004 <[^>]*> movhi at,1 | |
14 | 00000008 <[^>]*> ori at,at,16 | |
15 | 0000000c <[^>]*> jmp at | |
16 | 00000010 <[^>]*> br 0000001c <sym> | |
17 | 00000014 <[^>]*> nop | |
18 | 00000018 <[^>]*> nop | |
19 | 0000001c <sym> nop | |
20 | ||
21 | Disassembly of section text1: | |
22 | 00008000 <[^>]*> br 00010000 <on_border> | |
23 | 00008004 <[^>]*> movhi at,1 | |
24 | 00008008 <[^>]*> ori at,at,16 | |
25 | 0000800c <[^>]*> jmp at | |
26 | #... | |
27 | 00010000 <on_border> br 00010010 <in_range> | |
28 | 00010004 <[^>]*> nop | |
29 | 00010008 <[^>]*> nop | |
30 | 0001000c <[^>]*> nop | |
31 | 00010010 <in_range> nop | |
32 | #pass |