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
11Disassembly of section text2:
1200000000 <[^>]*> br	00008000 <[^>]*>
1300000004 <[^>]*> movhi	at,1
1400000008 <[^>]*> ori	at,at,16
150000000c <[^>]*> jmp	at
1600000010 <[^>]*> br	0000001c <sym>
1700000014 <[^>]*> nop
1800000018 <[^>]*> nop
190000001c <sym> nop
20
21Disassembly of section text1:
2200008000 <[^>]*> br	00010000 <on_border>
2300008004 <[^>]*> movhi	at,1
2400008008 <[^>]*> ori	at,at,16
250000800c <[^>]*> jmp	at
26#...
2700010000 <on_border> br	00010010 <in_range>
2800010004 <[^>]*> nop
2900010008 <[^>]*> nop
300001000c <[^>]*> nop
3100010010 <in_range> nop
32#pass
33