aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-nios2/relax_callr.d
blob: 7d40fe40053b76c4ed2f8fd832f0af53c03efdf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#name: NIOS2 relax_callr
#as: -relax-all
#ld: --relax -Trelax_callr.ld
#source: relax_callr.s
#objdump: -dr --prefix-addresses 
# Test relaxation of callr

.*: +file format elf32-littlenios2

Disassembly of section text1:
00000000 <[^>]*> movhi	at,2048
00000004 <[^>]*> ori	at,at,0
00000008 <[^>]*> callr	at
0000000c <[^>]*> movhi	at,2048
00000010 <[^>]*> ori	at,at,20
00000014 <[^>]*> callr	at

Disassembly of section text2:
08000000 <func> nop
08000004 <[^>]*> br	08000014 <func1>
08000008 <[^>]*> nop
0800000c <[^>]*> nop
08000010 <[^>]*> nop
08000014 <func1> nop