summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/sh/pic.d
blob: f4ac77518d1fb00c494b802e63a378403181d913 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#objdump: -dr --prefix-addresses --show-raw-insn
#name: SH PIC constructs
# Test SH PIC constructs:

.*:     file format elf.*sh.*

Disassembly of section \.text:
0x00000000 c7 0a       	mova	0x0000002c,r0
0x00000002 dc 0a       	mov\.l	0x0000002c,r12	! 0x0
0x00000004 3c 0c       	add	r0,r12
0x00000006 d0 0a       	mov\.l	0x00000030,r0	! 0x0
0x00000008 00 ce       	mov\.l	@\(r0,r12\),r0
0x0000000a 40 0b       	jsr	@r0
0x0000000c 00 09       	nop	
0x0000000e d0 09       	mov\.l	0x00000034,r0	! 0x0
0x00000010 30 cc       	add	r12,r0
0x00000012 40 0b       	jsr	@r0
0x00000014 00 09       	nop	
0x00000016 d1 08       	mov\.l	0x00000038,r1	! 0x0
0x00000018 c7 07       	mova	0x00000038,r0
0x0000001a 30 1c       	add	r1,r0
0x0000001c 40 0b       	jsr	@r0
0x0000001e 00 09       	nop	
0x00000020 d0 06       	mov\.l	0x0000003c,r0	! 0x16
0x00000022 40 0b       	jsr	@r0
0x00000024 00 09       	nop	
0x00000026 d0 06       	mov\.l	0x00000040,r0	! 0x14
0x00000028 40 0b       	jsr	@r0
0x0000002a 00 09       	nop	
	\.\.\.
			2c: R_SH_DIR32	GLOBAL_OFFSET_TABLE
			30: R_SH_GOT32	foo
			34: R_SH_GOTOFF	foo
			38: R_SH_PLT32	foo
0x0000003c 00 00       	\.word 0x0000
			3c: R_SH_PLT32	foo
0x0000003e 00 16       	mov\.l	r1,@\(r0,r0\)
0x00000040 00 00       	\.word 0x0000
			40: R_SH_PLT32	foo
0x00000042 00 14       	mov\.b	r1,@\(r0,r0\)