1 #objdump: -dr --prefix-addresses --show-raw-insn
2 #name: NIOS2 CDX branch relaxation
3 #as: -march=r2
4 
5 # Test relaxation of beqz.n, bnez.n, and br.n instructions to
6 # equivalent 32-bit instructions when the branch target is out of range.
7 
8 .*: +file format elf32-littlenios2
9 
10 Disassembly of section .text:
11 0+0000 <label0> 04a3      	bnez.n	r2,00000006 <label1>
12 0+0002 <[^>]*> 02eb      	beqz.n	r3,00000006 <label1>
13 0+0004 <[^>]*> 0003      	br.n	00000006 <label1>
14 0+0006 <label1> 04b800a2 	bne	r2,zero,000004c2 <label2>
15 0+000a <[^>]*> 04b400ea 	beq	r3,zero,000004c2 <label2>
16 0+000e <[^>]*> 04b00002 	br	000004c2 <label2>
17 0+0012 <[^>]*> c4000020 	nop
18 #...
19 0+04c2 <label2> fb4000a2 	bne	r2,zero,00000006 <label1>
20 0+04c6 <[^>]*> fb3c00ea 	beq	r3,zero,00000006 <label1>
21 0+04ca <[^>]*> fb380002 	br	00000006 <label1>
22 	...
23