1 #name: NIOS2 relax_cjmp
2 #as: -relax-all
3 #ld: --relax -Trelax_jmp.ld
4 #source: relax_cjmp.s
5 #objdump: -dr --prefix-addresses
6 
7 # Test relaxation of conditional jumps
8 
9 .*: +file format elf32-littlenios2
10 
11 Disassembly of section text2:
12 00000000 <[^>]*> bge	r2,r3,00008000 <[^>]*>
13 00000004 <[^>]*> bge	r2,r3,00000014 <[^>]*>
14 00000008 <[^>]*> movhi	at,1
15 0000000c <[^>]*> ori	at,at,24
16 00000010 <[^>]*> jmp	at
17 00000014 <[^>]*> bge	r3,r2,00000020 <sym>
18 00000018 <[^>]*> nop
19 0000001c <[^>]*> nop
20 00000020 <sym> nop
21 
22 Disassembly of section text1:
23 00008000 <[^>]*> beq	r2,r3,00010000 <on_border>
24 00008004 <[^>]*> bne	r2,r3,00008014 <[^>]*>
25 00008008 <[^>]*> movhi	at,1
26 0000800c <[^>]*> ori	at,at,24
27 00008010 <[^>]*> jmp	at
28 00008014 <[^>]*> nop
29 00008018 <[^>]*> nop
30 #...
31 00010000 <on_border> bne	r2,r3,00010018 <in_range>
32 00010004 <[^>]*> nop
33 00010008 <[^>]*> nop
34 0001000c <[^>]*> nop
35 00010010 <[^>]*> nop
36 00010014 <[^>]*> nop
37 00010018 <in_range> nop
38 #pass
39