1 #name: NIOS2 relax_callr
2 #as: -relax-all
3 #ld: --relax -Trelax_callr.ld
4 #source: relax_callr.s
5 #objdump: -dr --prefix-addresses
6 # Test relaxation of callr
7 
8 .*: +file format elf32-littlenios2
9 
10 Disassembly of section text1:
11 00000000 <[^>]*> movhi	at,2048
12 00000004 <[^>]*> ori	at,at,0
13 00000008 <[^>]*> callr	at
14 0000000c <[^>]*> movhi	at,2048
15 00000010 <[^>]*> ori	at,at,20
16 00000014 <[^>]*> callr	at
17 
18 Disassembly of section text2:
19 08000000 <func> nop
20 08000004 <[^>]*> br	08000014 <func1>
21 08000008 <[^>]*> nop
22 0800000c <[^>]*> nop
23 08000010 <[^>]*> nop
24 08000014 <func1> nop
25