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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
|
# RUN: llvm-mc --disassemble %s -triple powerpc64-unknown-unknown -mcpu=pwr7 | FileCheck %s
# CHECK: lfs 2, 128(4)
0xc0 0x44 0x00 0x80
# CHECK: lfsx 2, 3, 4
0x7c 0x43 0x24 0x2e
# CHECK: lfsu 2, 128(4)
0xc4 0x44 0x00 0x80
# CHECK: lfsux 2, 3, 4
0x7c 0x43 0x24 0x6e
# CHECK: lfd 2, 128(4)
0xc8 0x44 0x00 0x80
# CHECK: lfdx 2, 3, 4
0x7c 0x43 0x24 0xae
# CHECK: lfdu 2, 128(4)
0xcc 0x44 0x00 0x80
# CHECK: lfdux 2, 3, 4
0x7c 0x43 0x24 0xee
# CHECK: lfiwax 2, 3, 4
0x7c 0x43 0x26 0xae
# CHECK: lfiwzx 2, 3, 4
0x7c 0x43 0x26 0xee
# CHECK: stfs 2, 128(4)
0xd0 0x44 0x00 0x80
# CHECK: stfsx 2, 3, 4
0x7c 0x43 0x25 0x2e
# CHECK: stfsu 2, 128(4)
0xd4 0x44 0x00 0x80
# CHECK: stfsux 2, 3, 4
0x7c 0x43 0x25 0x6e
# CHECK: stfd 2, 128(4)
0xd8 0x44 0x00 0x80
# CHECK: stfdx 2, 3, 4
0x7c 0x43 0x25 0xae
# CHECK: stfdu 2, 128(4)
0xdc 0x44 0x00 0x80
# CHECK: stfdux 2, 3, 4
0x7c 0x43 0x25 0xee
# CHECK: stfiwx 2, 3, 4
0x7c 0x43 0x27 0xae
# CHECK: fmr 2, 3
0xfc 0x40 0x18 0x90
# CHECK: fmr. 2, 3
0xfc 0x40 0x18 0x91
# CHECK: fneg 2, 3
0xfc 0x40 0x18 0x50
# CHECK: fneg. 2, 3
0xfc 0x40 0x18 0x51
# CHECK: fabs 2, 3
0xfc 0x40 0x1a 0x10
# CHECK: fabs. 2, 3
0xfc 0x40 0x1a 0x11
# CHECK: fnabs 2, 3
0xfc 0x40 0x19 0x10
# CHECK: fnabs. 2, 3
0xfc 0x40 0x19 0x11
# CHECK: fcpsgn 2, 3, 4
0xfc 0x43 0x20 0x10
# CHECK: fcpsgn. 2, 3, 4
0xfc 0x43 0x20 0x11
# CHECK: fadd 2, 3, 4
0xfc 0x43 0x20 0x2a
# CHECK: fadd. 2, 3, 4
0xfc 0x43 0x20 0x2b
# CHECK: fadds 2, 3, 4
0xec 0x43 0x20 0x2a
# CHECK: fadds. 2, 3, 4
0xec 0x43 0x20 0x2b
# CHECK: fsub 2, 3, 4
0xfc 0x43 0x20 0x28
# CHECK: fsub. 2, 3, 4
0xfc 0x43 0x20 0x29
# CHECK: fsubs 2, 3, 4
0xec 0x43 0x20 0x28
# CHECK: fsubs. 2, 3, 4
0xec 0x43 0x20 0x29
# CHECK: fmul 2, 3, 4
0xfc 0x43 0x01 0x32
# CHECK: fmul. 2, 3, 4
0xfc 0x43 0x01 0x33
# CHECK: fmuls 2, 3, 4
0xec 0x43 0x01 0x32
# CHECK: fmuls. 2, 3, 4
0xec 0x43 0x01 0x33
# CHECK: fdiv 2, 3, 4
0xfc 0x43 0x20 0x24
# CHECK: fdiv. 2, 3, 4
0xfc 0x43 0x20 0x25
# CHECK: fdivs 2, 3, 4
0xec 0x43 0x20 0x24
# CHECK: fdivs. 2, 3, 4
0xec 0x43 0x20 0x25
# CHECK: fsqrt 2, 3
0xfc 0x40 0x18 0x2c
# CHECK: fsqrt. 2, 3
0xfc 0x40 0x18 0x2d
# CHECK: fsqrts 2, 3
0xec 0x40 0x18 0x2c
# CHECK: fsqrts. 2, 3
0xec 0x40 0x18 0x2d
# CHECK: fre 2, 3
0xfc 0x40 0x18 0x30
# CHECK: fre. 2, 3
0xfc 0x40 0x18 0x31
# CHECK: fres 2, 3
0xec 0x40 0x18 0x30
# CHECK: fres. 2, 3
0xec 0x40 0x18 0x31
# CHECK: frsqrte 2, 3
0xfc 0x40 0x18 0x34
# CHECK: frsqrte. 2, 3
0xfc 0x40 0x18 0x35
# CHECK: frsqrtes 2, 3
0xec 0x40 0x18 0x34
# CHECK: frsqrtes. 2, 3
0xec 0x40 0x18 0x35
# CHECK: fmadd 2, 3, 4, 5
0xfc 0x43 0x29 0x3a
# CHECK: fmadd. 2, 3, 4, 5
0xfc 0x43 0x29 0x3b
# CHECK: fmadds 2, 3, 4, 5
0xec 0x43 0x29 0x3a
# CHECK: fmadds. 2, 3, 4, 5
0xec 0x43 0x29 0x3b
# CHECK: fmsub 2, 3, 4, 5
0xfc 0x43 0x29 0x38
# CHECK: fmsub. 2, 3, 4, 5
0xfc 0x43 0x29 0x39
# CHECK: fmsubs 2, 3, 4, 5
0xec 0x43 0x29 0x38
# CHECK: fmsubs. 2, 3, 4, 5
0xec 0x43 0x29 0x39
# CHECK: fnmadd 2, 3, 4, 5
0xfc 0x43 0x29 0x3e
# CHECK: fnmadd. 2, 3, 4, 5
0xfc 0x43 0x29 0x3f
# CHECK: fnmadds 2, 3, 4, 5
0xec 0x43 0x29 0x3e
# CHECK: fnmadds. 2, 3, 4, 5
0xec 0x43 0x29 0x3f
# CHECK: fnmsub 2, 3, 4, 5
0xfc 0x43 0x29 0x3c
# CHECK: fnmsub. 2, 3, 4, 5
0xfc 0x43 0x29 0x3d
# CHECK: fnmsubs 2, 3, 4, 5
0xec 0x43 0x29 0x3c
# CHECK: fnmsubs. 2, 3, 4, 5
0xec 0x43 0x29 0x3d
# CHECK: frsp 2, 3
0xfc 0x40 0x18 0x18
# CHECK: frsp. 2, 3
0xfc 0x40 0x18 0x19
# CHECK: fctid 2, 3
0xfc 0x40 0x1e 0x5c
# CHECK: fctid. 2, 3
0xfc 0x40 0x1e 0x5d
# CHECK: fctidz 2, 3
0xfc 0x40 0x1e 0x5e
# CHECK: fctidz. 2, 3
0xfc 0x40 0x1e 0x5f
# CHECK: fctiduz 2, 3
0xfc 0x40 0x1f 0x5e
# CHECK: fctiduz. 2, 3
0xfc 0x40 0x1f 0x5f
# CHECK: fctiw 2, 3
0xfc 0x40 0x18 0x1c
# CHECK: fctiw. 2, 3
0xfc 0x40 0x18 0x1d
# CHECK: fctiwz 2, 3
0xfc 0x40 0x18 0x1e
# CHECK: fctiwz. 2, 3
0xfc 0x40 0x18 0x1f
# CHECK: fctiwuz 2, 3
0xfc 0x40 0x19 0x1e
# CHECK: fctiwuz. 2, 3
0xfc 0x40 0x19 0x1f
# CHECK: fcfid 2, 3
0xfc 0x40 0x1e 0x9c
# CHECK: fcfid. 2, 3
0xfc 0x40 0x1e 0x9d
# CHECK: fcfidu 2, 3
0xfc 0x40 0x1f 0x9c
# CHECK: fcfidu. 2, 3
0xfc 0x40 0x1f 0x9d
# CHECK: fcfids 2, 3
0xec 0x40 0x1e 0x9c
# CHECK: fcfids. 2, 3
0xec 0x40 0x1e 0x9d
# CHECK: fcfidus 2, 3
0xec 0x40 0x1f 0x9c
# CHECK: fcfidus. 2, 3
0xec 0x40 0x1f 0x9d
# CHECK: frin 2, 3
0xfc 0x40 0x1b 0x10
# CHECK: frin. 2, 3
0xfc 0x40 0x1b 0x11
# CHECK: frip 2, 3
0xfc 0x40 0x1b 0x90
# CHECK: frip. 2, 3
0xfc 0x40 0x1b 0x91
# CHECK: friz 2, 3
0xfc 0x40 0x1b 0x50
# CHECK: friz. 2, 3
0xfc 0x40 0x1b 0x51
# CHECK: frim 2, 3
0xfc 0x40 0x1b 0xd0
# CHECK: frim. 2, 3
0xfc 0x40 0x1b 0xd1
# CHECK: fcmpu 2, 3, 4
0xfd 0x03 0x20 0x00
# CHECK: fsel 2, 3, 4, 5
0xfc 0x43 0x29 0x2e
# CHECK: fsel. 2, 3, 4, 5
0xfc 0x43 0x29 0x2f
# CHECK: mffs 2
0xfc 0x40 0x04 0x8e
# CHECK: mtfsb0 31
0xff 0xe0 0x00 0x8c
# CHECK: mtfsb1 31
0xff 0xe0 0x00 0x4c
|