OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [gas/] [testsuite/] [gas/] [sh/] [sh64/] [rel-1.s] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
! Test pc-relative relocations in MOVI and MOVI expansion.
2
 
3
        .mode SHmedia
4
        .text
5
start:
6
        movi data1 - datalabel $,r10
7
        movi (data2 - datalabel $) & 65535,r10
8
        movi ((data3 - datalabel $) >> 0) & 65535,r10
9
        movi ((data4 - datalabel $) >> 16) & 65535,r10
10
        movi data5 + 8 - datalabel $,r10
11
        movi (data6 + 16 - datalabel $) & 65535,r10
12
        movi ((data7 + 12 - datalabel $) >> 0) & 65535,r10
13
        movi ((data8 + 4 - datalabel $) >> 16) & 65535,r10
14
 
15
        movi othertext1 - datalabel $,r10
16
        movi (othertext2 - datalabel $) & 65535,r10
17
        movi ((othertext3 - datalabel $) >> 0) & 65535,r10
18
        movi ((othertext4 - datalabel $) >> 16) & 65535,r10
19
        movi othertext5 + 8 - datalabel $,r10
20
        movi (othertext6 + 16 - datalabel $) & 65535,r10
21
        movi ((othertext7 + 12 - datalabel $) >> 0) & 65535,r10
22
        movi ((othertext8 + 4 - datalabel $) >> 16) & 65535,r10
23
 
24
        movi extern1 - datalabel $,r10
25
        movi (extern2 - datalabel $) & 65535,r10
26
        movi ((extern3 - datalabel $) >> 0) & 65535,r10
27
        movi ((extern4 - datalabel $) >> 16) & 65535,r10
28
        movi extern5 + 8 - datalabel $,r10
29
        movi (extern6 + 16 - datalabel $) & 65535,r10
30
        movi ((extern7 + 12 - datalabel $) >> 0) & 65535,r10
31
        movi ((extern8 + 4 - datalabel $) >> 16) & 65535,r10
32
 
33
        movi gdata1 - datalabel $,r10
34
        movi (gdata2 - datalabel $) & 65535,r10
35
        movi ((gdata3 - datalabel $) >> 0) & 65535,r10
36
        movi ((gdata4 - datalabel $) >> 16) & 65535,r10
37
        movi gdata5 + 8 - datalabel $,r10
38
        movi (gdata6 + 16 - datalabel $) & 65535,r10
39
        movi ((gdata7 + 12 - datalabel $) >> 0) & 65535,r10
40
        movi ((gdata8 + 4 - datalabel $) >> 16) & 65535,r10
41
 
42
        movi gothertext1 - datalabel $,r10
43
        movi (gothertext2 - datalabel $) & 65535,r10
44
        movi ((gothertext3 - datalabel $) >> 0) & 65535,r10
45
        movi ((gothertext4 - datalabel $) >> 16) & 65535,r10
46
        movi gothertext5 + 8 - datalabel $,r10
47
        movi (gothertext6 + 16 - datalabel $) & 65535,r10
48
        movi ((gothertext7 + 12 - datalabel $) >> 0) & 65535,r10
49
        movi ((gothertext8 + 4 - datalabel $) >> 16) & 65535,r10
50
 
51
        .section .othertext,"ax"
52
x:
53
        nop
54
othertext1:
55
        nop
56
othertext2:
57
        nop
58
othertext3:
59
        nop
60
othertext4:
61
        nop
62
othertext5:
63
        nop
64
othertext6:
65
        nop
66
othertext7:
67
        nop
68
othertext8:
69
        nop
70
        .global gothertext1
71
gothertext1:
72
        nop
73
        .global gothertext2
74
gothertext2:
75
        nop
76
        .global gothertext3
77
gothertext3:
78
        nop
79
        .global gothertext4
80
gothertext4:
81
        nop
82
        .global gothertext5
83
gothertext5:
84
        nop
85
        .global gothertext6
86
gothertext6:
87
        nop
88
        .global gothertext7
89
gothertext7:
90
        nop
91
        .global gothertext8
92
gothertext8:
93
        nop
94
 
95
        .data
96
y:
97
        .long 0
98
data1:
99
        .long 0
100
data2:
101
        .long 0
102
data3:
103
        .long 0
104
data4:
105
        .long 0
106
data5:
107
        .long 0
108
data6:
109
        .long 0
110
data7:
111
        .long 0
112
data8:
113
        .long 0
114
        .global gdata1
115
gdata1:
116
        .long 0
117
        .global gdata2
118
gdata2:
119
        .long 0
120
        .global gdata3
121
gdata3:
122
        .long 0
123
        .global gdata4
124
gdata4:
125
        .long 0
126
        .global gdata5
127
gdata5:
128
        .long 0
129
        .global gdata6
130
gdata6:
131
        .long 0
132
        .global gdata7
133
gdata7:
134
        .long 0
135
        .global gdata8
136
gdata8:
137
        .long 0

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.