1#name: NIOS2 relax_section
2#as: -relax-section
3#ld: --relax -Trelax_jmp.ld
4#source: relax_section.s
5#objdump: -dr --prefix-addresses
6
7# Test relaxation of section
8
9.*: +file format elf32-littlenios2
10
11Disassembly of section text1:
1200008000 <[^>]*> bne	r2,r3,00008010 <[^>]*>
1300008004 <[^>]*> nextpc	at
1400008008 <[^>]*> addi	at,at,32764
150000800c <[^>]*> jmp	at
1600008010 <[^>]*> bge	r2,r3,00008024 <[^>]*>
1700008014 <[^>]*> nextpc	at
1800008018 <[^>]*> addi	at,at,32767
190000801c <[^>]*> addi	at,at,9
2000008020 <[^>]*> jmp	at
2100008024 <[^>]*> bne	r2,r3,00008030 <in_range>
2200008028 <[^>]*> nop
230000802c <[^>]*> nop
2400008030 <in_range> nop
25#...
2600010000 <[^>]*> br	00008030 <in_range>
2700010004 <just_out_of_range> nop
2800010008 <[^>]*> nop
290001000c <[^>]*> nop
3000010010 <[^>]*> nop
3100010014 <[^>]*> nop
3200010018 <[^>]*> nop
330001001c <[^>]*> nop
3400010020 <farther_out_of_range> nop
35#pass
36