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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.20.1/] [gas/] [testsuite/] [gas/] [crx/] [arith_insn.s] - Blame information for rev 205

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 205 julius
# Arithmetic instructions.
2
 .data
3
foodata: .word 42
4
         .text
5
footext:
6
 
7
        .global addub
8
addub:
9
addub $0x0 , r1
10
addub $0x5 , r2
11
addub r3 , r4
12
 
13
        .global addb
14
addb:
15
addb $0x1 , r5
16
addb $0x6 , r6
17
addb r7 , r8
18
 
19
        .global addcb
20
addcb:
21
addcb $2 , r9
22
addcb $0x9 , r10
23
addcb r11 , r12
24
 
25
        .global andb
26
andb:
27
andb $0x3 , r13
28
andb $0x10 , r14
29
andb r15 , ra
30
 
31
        .global cmpb
32
cmpb:
33
cmpb $0x4 , sp
34
cmpb $0x11 , r1
35
cmpb r2 , r3
36
 
37
        .global movb
38
movb:
39
movb $-4 , r4
40
movb $0x236 , r5
41
movb r6 , r7
42
 
43
        .global orb
44
orb:
45
orb $-0x1 , r8
46
orb $0x6980 , r9
47
orb r10 , r11
48
 
49
        .global subb
50
subb:
51
subb $07 , r12
52
subb $0x7fff , r13
53
subb r14 , r15
54
 
55
        .global subcb
56
subcb:
57
subcb $010 , ra
58
subcb $-0x56 , sp
59
subcb r1 , r2
60
 
61
        .global xorb
62
xorb:
63
xorb $0x16 , r3
64
xorb $-0x6ffe , r4
65
xorb r5 , r6
66
 
67
        .global mulb
68
mulb:
69
mulb $0x32 , r7
70
mulb $0xefa , r8
71
mulb r9 , r10
72
 
73
        .global adduw
74
adduw:
75
adduw $0x20 , r11
76
adduw $32767 , r12
77
adduw r13 , r14
78
 
79
        .global addw
80
addw:
81
addw $0x12 , r15
82
addw $-32767 , ra
83
addw sp , r1
84
 
85
        .global addcw
86
addcw:
87
addcw $0x48 , r2
88
addcw $27 , r3
89
addcw r4 , r5
90
 
91
        .global andw
92
andw:
93
andw $0 , r6
94
andw $-27 , r7
95
andw r8 , r9
96
 
97
        .global cmpw
98
cmpw:
99
cmpw $1 , r10
100
cmpw $0x11 , r11
101
cmpw r12 , r13
102
 
103
        .global movw
104
movw:
105
movw $0x2 , r14
106
movw $07000 , r15
107
movw ra , sp
108
 
109
        .global orw
110
orw:
111
orw $0x3 , r1
112
orw $-2 , r2
113
orw r3 , r4
114
 
115
        .global subw
116
subw:
117
subw $04 , r5
118
subw $022 , r6
119
subw r7 , r8
120
 
121
        .global subcw
122
subcw:
123
subcw $-0x4 , r9
124
subcw $-9 , r10
125
subcw r11 , r12
126
 
127
        .global xorw
128
xorw:
129
xorw $-1 , r13
130
xorw $0x21 , r14
131
xorw r15 , ra
132
 
133
        .global mulw
134
mulw:
135
mulw $0x7 , sp
136
mulw $027 , r1
137
mulw r2 , r3
138
 
139
        .global addud
140
addud:
141
addud $0x0 , r1
142
addud $0x5 , r2
143
addud $0x55555 , r2
144
addud r3 , r4
145
 
146
        .global addd
147
addd:
148
addd $0x1 , r5
149
addd $0x6 , r6
150
addd $0x7fffffff , r6
151
addd r7 , r8
152
 
153
        .global addcd
154
addcd:
155
addcd $2 , r9
156
addcd $0x9 , r10
157
addcd $-0x7fffffff , r10
158
addcd r11 , r12
159
 
160
        .global andd
161
andd:
162
andd $0x3 , r13
163
andd $0x10 , r14
164
andd $0xffffffff , r14
165
andd r15 , ra
166
 
167
        .global cmpd
168
cmpd:
169
cmpd $0x4 , sp
170
cmpd $0x11 , r1
171
cmpd $0xf0000001 , r1
172
cmpd r2 , r3
173
 
174
        .global movd
175
movd:
176
movd $-4 , r4
177
movd $0x236 , r5
178
movd $-0x80000000 , r5
179
movd r6 , r7
180
 
181
        .global ord
182
ord:
183
ord $-0x1 , r8
184
ord $0x6980 , r9
185
ord $0x10000 , r9
186
ord r10 , r11
187
 
188
        .global subd
189
subd:
190
subd $07 , r12
191
subd $0x7fff , r13
192
subd $-0x10000 , r13
193
subd r14 , r15
194
 
195
        .global subcd
196
subcd:
197
subcd $010 , ra
198
subcd $-0x56 , sp
199
subcd $4294967295 , sp
200
subcd r1 , r2
201
 
202
        .global xord
203
xord:
204
xord $0x16 , r3
205
xord $-0x6ffe , r4
206
xord $017777777777 , r4
207
xord r5 , r6
208
 
209
        .global muld
210
muld:
211
muld $0x32 , r7
212
muld $0xefa , r8
213
muld $-017777777777 , r8
214
muld r9 , r10

powered by: WebSVN 2.1.0

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