aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-frv/fdpic4.s
blob: 795ae45516eb22cc4c5c47c4e05cef5edd1a6fa5 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
	.text
	.weak _start
_start:
	.global F4
	.type F4,@function
F4:
	call	PF0
	.global PF0
	.protected PF0
	.global PF1
	.protected PF1
	.global PF2
	.protected PF2
	.global PF3
	.protected PF3
	.global PF4
	.protected PF4
	.global PF5
	.protected PF5
	.global PF6
	.protected PF6
	.global PF7
	.protected PF7
	.global PF8
	.protected PF8
	.global PF9
	.protected PF9
	.global PFa
	.protected PFa
	.global PFb
	.protected PFb
	.global PFc
	.protected PFc
PF0:
PF1:
PF2:
PF3:
PF4:
PF5:
PF6:
PF7:
PF8:
PF9:
PFa:
PFb:
PFc:
	addi	gr15, #got12(PF1), gr0
	
	setlos	#gotlo(PF2), gr0
	
	setlo	#gotlo(PF3), gr0
	sethi	#gothi(PF3), gr0

	addi	gr15, #gotfuncdesc12(PF4), gr0

	setlos	#gotfuncdesclo(PF5), gr0

	setlo	#gotfuncdesclo(PF6), gr0
	sethi	#gotfuncdeschi(PF6), gr0

	addi	gr15, #gotofffuncdesc12(PF7), gr0

	setlos	#gotofffuncdesclo(PF8), gr0

	setlo	#gotofffuncdesclo(PF9), gr0
	sethi	#gotofffuncdeschi(PF9), gr0

	addi	gr15, #gotoff12(PD1), gr0
	
	setlos	#gotofflo(PD2), gr0

	setlo	#gotofflo(PD3), gr0
	sethi	#gotoffhi(PD3), gr0

	setlo	#gotlo(PD4), gr0
	sethi	#gothi(PD4), gr0

	.data
	.global D4
D4:
	.word	PD0
	
	.global PD0
	.protected PD0
	.global PD1
	.protected PD1
	.global PD2
	.protected PD2
	.global PD3
	.protected PD3
	.global PD4
	.protected PD4
PD0:
PD1:
PD2:
PD3:
PD4:
	.picptr funcdesc(PFb)
	.word	PFb