Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / fr550 / cmaddhss.cgs
blob174a3dcc56e7f5e88f05a8445a50c6c826e6e8ae
1 # frv testcase for cmaddhss $FRi,$FRj,$FRj,$CCi,$cond
2 # mach: all
4         .include "../testutils.inc"
6         start
8         .global maddhss
9 maddhss:
10         set_spr_immed   0x1b1b,cccr
12         set_fr_iimmed   0x0000,0x0000,fr10
13         set_fr_iimmed   0x0000,0x0000,fr11
14         cmaddhss        fr10,fr11,fr12,cc0,1
15         test_fr_limmed  0x0000,0x0000,fr12
16         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
17         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
18         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
19         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
21         set_fr_iimmed   0xdead,0x0000,fr10
22         set_fr_iimmed   0x0000,0xbeef,fr11
23         cmaddhss        fr10,fr11,fr12,cc0,1
24         test_fr_limmed  0xdead,0xbeef,fr12
25         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
26         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
27         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
28         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
30         set_fr_iimmed   0x0000,0xdead,fr10
31         set_fr_iimmed   0xbeef,0x0000,fr11
32         cmaddhss        fr10,fr11,fr12,cc0,1
33         test_fr_limmed  0xbeef,0xdead,fr12
34         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
35         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
36         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
37         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
39         set_fr_iimmed   0x1234,0x5678,fr10
40         set_fr_iimmed   0x1111,0x1111,fr11
41         cmaddhss        fr10,fr11,fr12,cc0,1
42         test_fr_limmed  0x2345,0x6789,fr12
43         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
44         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
45         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
46         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
48         set_fr_iimmed   0x1234,0x5678,fr10
49         set_fr_iimmed   0xffff,0xffff,fr11
50         cmaddhss        fr10,fr11,fr12,cc0,1
51         test_fr_limmed  0x1233,0x5677,fr12
52         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
53         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
54         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
55         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
57         set_spr_immed   0,msr0
58         set_fr_iimmed   0x7ffe,0x7ffe,fr10
59         set_fr_iimmed   0x0002,0x0001,fr11
60         cmaddhss        fr10,fr11,fr12,cc4,1
61         test_fr_limmed  0x7fff,0x7fff,fr12
62         test_spr_bits   0x3c,2,0x8,msr0         ; msr0.sie is set
63         test_spr_bits   2,1,1,msr0              ; msr0.ovf set
64         test_spr_bits   1,0,1,msr0              ; msr0.aovf set
65         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt set
67         set_spr_immed   0,msr0
68         set_fr_iimmed   0x8001,0x8001,fr10
69         set_fr_iimmed   0xffff,0xfffe,fr11
70         cmaddhss        fr10,fr11,fr12,cc4,1
71         test_spr_bits   0x3c,2,0x4,msr0         ; msr0.sie is set
72         test_fr_limmed  0x8000,0x8000,fr12
73         test_spr_bits   2,1,1,msr0              ; msr0.ovf set
74         test_spr_bits   1,0,1,msr0              ; msr0.aovf set
75         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt set
77         set_spr_immed   0,msr0
78         set_fr_iimmed   0x8001,0x8001,fr10
79         set_fr_iimmed   0xfffe,0xfffe,fr11
80         cmaddhss        fr10,fr11,fr12,cc4,1
81         test_fr_limmed  0x8000,0x8000,fr12
82         test_spr_bits   0x3c,2,0xc,msr0         ; msr0.sie is set
83         test_spr_bits   2,1,1,msr0              ; msr0.ovf set
84         test_spr_bits   1,0,1,msr0              ; msr0.aovf set
85         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt set
87         set_spr_immed   0,msr0
88         set_fr_iimmed   0x0001,0x0001,fr10
89         set_fr_iimmed   0x7fff,0x7fff,fr11
90         cmaddhss.p      fr10,fr10,fr12,cc4,1
91         cmaddhss        fr11,fr11,fr13,cc4,1
92         test_fr_limmed  0x0002,0x0002,fr12
93         test_fr_limmed  0x7fff,0x7fff,fr13
94         test_spr_bits   0x3c,2,0xc,msr0         ; msr0.sie is set
95         test_spr_bits   2,1,1,msr0              ; msr0.ovf set
96         test_spr_bits   1,0,1,msr0              ; msr0.aovf set
97         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt set
99         set_spr_immed   0,msr0
100         set_fr_iimmed   0x0000,0x0000,fr10
101         set_fr_iimmed   0x0000,0x0000,fr11
102         cmaddhss        fr10,fr11,fr12,cc1,0
103         test_fr_limmed  0x0000,0x0000,fr12
104         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
105         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
106         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
107         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
109         set_fr_iimmed   0xdead,0x0000,fr10
110         set_fr_iimmed   0x0000,0xbeef,fr11
111         cmaddhss        fr10,fr11,fr12,cc1,0
112         test_fr_limmed  0xdead,0xbeef,fr12
113         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
114         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
115         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
116         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
118         set_fr_iimmed   0x0000,0xdead,fr10
119         set_fr_iimmed   0xbeef,0x0000,fr11
120         cmaddhss        fr10,fr11,fr12,cc1,0
121         test_fr_limmed  0xbeef,0xdead,fr12
122         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
123         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
124         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
125         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
127         set_fr_iimmed   0x1234,0x5678,fr10
128         set_fr_iimmed   0x1111,0x1111,fr11
129         cmaddhss        fr10,fr11,fr12,cc1,0
130         test_fr_limmed  0x2345,0x6789,fr12
131         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
132         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
133         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
134         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
136         set_fr_iimmed   0x1234,0x5678,fr10
137         set_fr_iimmed   0xffff,0xffff,fr11
138         cmaddhss        fr10,fr11,fr12,cc1,0
139         test_fr_limmed  0x1233,0x5677,fr12
140         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
141         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
142         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
143         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
145         set_spr_immed   0,msr0
146         set_fr_iimmed   0x7ffe,0x7ffe,fr10
147         set_fr_iimmed   0x0002,0x0001,fr11
148         cmaddhss        fr10,fr11,fr12,cc5,0
149         test_fr_limmed  0x7fff,0x7fff,fr12
150         test_spr_bits   0x3c,2,0x8,msr0         ; msr0.sie is set
151         test_spr_bits   2,1,1,msr0              ; msr0.ovf set
152         test_spr_bits   1,0,1,msr0              ; msr0.aovf set
153         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt set
155         set_spr_immed   0,msr0
156         set_fr_iimmed   0x8001,0x8001,fr10
157         set_fr_iimmed   0xffff,0xfffe,fr11
158         cmaddhss        fr10,fr11,fr12,cc5,0
159         test_spr_bits   0x3c,2,0x4,msr0         ; msr0.sie is set
160         test_fr_limmed  0x8000,0x8000,fr12
161         test_spr_bits   2,1,1,msr0              ; msr0.ovf set
162         test_spr_bits   1,0,1,msr0              ; msr0.aovf set
163         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt set
165         set_spr_immed   0,msr0
166         set_fr_iimmed   0x8001,0x8001,fr10
167         set_fr_iimmed   0xfffe,0xfffe,fr11
168         cmaddhss        fr10,fr11,fr12,cc5,0
169         test_fr_limmed  0x8000,0x8000,fr12
170         test_spr_bits   0x3c,2,0xc,msr0         ; msr0.sie is set
171         test_spr_bits   2,1,1,msr0              ; msr0.ovf set
172         test_spr_bits   1,0,1,msr0              ; msr0.aovf set
173         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt set
175         set_spr_immed   0,msr0
176         set_fr_iimmed   0x0001,0x0001,fr10
177         set_fr_iimmed   0x7fff,0x7fff,fr11
178         cmaddhss.p      fr10,fr10,fr12,cc5,0
179         cmaddhss        fr11,fr11,fr13,cc5,0
180         test_fr_limmed  0x0002,0x0002,fr12
181         test_fr_limmed  0x7fff,0x7fff,fr13
182         test_spr_bits   0x3c,2,0xc,msr0         ; msr0.sie is set
183         test_spr_bits   2,1,1,msr0              ; msr0.ovf set
184         test_spr_bits   1,0,1,msr0              ; msr0.aovf set
185         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt set
187         set_fr_iimmed   0xdead,0xbeef,fr12
188         set_spr_immed   0,msr0
189         set_fr_iimmed   0x0000,0x0000,fr10
190         set_fr_iimmed   0x0000,0x0000,fr11
191         cmaddhss        fr10,fr11,fr12,cc0,0
192         test_fr_limmed  0xdead,0xbeef,fr12
193         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
194         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
195         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
196         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
198         set_fr_iimmed   0xdead,0x0000,fr10
199         set_fr_iimmed   0x0000,0xbeef,fr11
200         cmaddhss        fr10,fr11,fr12,cc0,0
201         test_fr_limmed  0xdead,0xbeef,fr12
202         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
203         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
204         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
205         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
207         set_fr_iimmed   0x0000,0xdead,fr10
208         set_fr_iimmed   0xbeef,0x0000,fr11
209         cmaddhss        fr10,fr11,fr12,cc0,0
210         test_fr_limmed  0xdead,0xbeef,fr12
211         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
212         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
213         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
214         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
216         set_fr_iimmed   0x1234,0x5678,fr10
217         set_fr_iimmed   0x1111,0x1111,fr11
218         cmaddhss        fr10,fr11,fr12,cc0,0
219         test_fr_limmed  0xdead,0xbeef,fr12
220         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
221         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
222         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
223         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
225         set_fr_iimmed   0x1234,0x5678,fr10
226         set_fr_iimmed   0xffff,0xffff,fr11
227         cmaddhss        fr10,fr11,fr12,cc0,0
228         test_fr_limmed  0xdead,0xbeef,fr12
229         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
230         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
231         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
232         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
234         set_spr_immed   0,msr0
235         set_fr_iimmed   0x7ffe,0x7ffe,fr10
236         set_fr_iimmed   0x0002,0x0001,fr11
237         cmaddhss        fr10,fr11,fr12,cc4,0
238         test_fr_limmed  0xdead,0xbeef,fr12
239         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
240         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
241         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
242         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
244         set_spr_immed   0,msr0
245         set_fr_iimmed   0x8001,0x8001,fr10
246         set_fr_iimmed   0xffff,0xfffe,fr11
247         cmaddhss        fr10,fr11,fr12,cc4,0
248         test_fr_limmed  0xdead,0xbeef,fr12
249         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
250         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
251         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
252         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
254         set_spr_immed   0,msr0
255         set_fr_iimmed   0x8001,0x8001,fr10
256         set_fr_iimmed   0xfffe,0xfffe,fr11
257         cmaddhss        fr10,fr11,fr12,cc4,0
258         test_fr_limmed  0xdead,0xbeef,fr12
259         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
260         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
261         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
262         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
264         set_fr_iimmed   0xbeef,0xdead,fr13
265         set_spr_immed   0,msr0
266         set_fr_iimmed   0x0001,0x0001,fr10
267         set_fr_iimmed   0x7fff,0x7fff,fr11
268         cmaddhss.p      fr10,fr10,fr12,cc4,0
269         cmaddhss        fr11,fr11,fr13,cc4,0
270         test_fr_limmed  0xdead,0xbeef,fr12
271         test_fr_limmed  0xbeef,0xdead,fr13
272         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
273         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
274         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
275         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
277         set_fr_iimmed   0xdead,0xbeef,fr12
278         set_spr_immed   0,msr0
279         set_fr_iimmed   0x0000,0x0000,fr10
280         set_fr_iimmed   0x0000,0x0000,fr11
281         cmaddhss        fr10,fr11,fr12,cc1,1
282         test_fr_limmed  0xdead,0xbeef,fr12
283         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
284         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
285         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
286         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
288         set_fr_iimmed   0xdead,0x0000,fr10
289         set_fr_iimmed   0x0000,0xbeef,fr11
290         cmaddhss        fr10,fr11,fr12,cc1,1
291         test_fr_limmed  0xdead,0xbeef,fr12
292         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
293         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
294         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
295         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
297         set_fr_iimmed   0x0000,0xdead,fr10
298         set_fr_iimmed   0xbeef,0x0000,fr11
299         cmaddhss        fr10,fr11,fr12,cc1,1
300         test_fr_limmed  0xdead,0xbeef,fr12
301         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
302         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
303         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
304         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
306         set_fr_iimmed   0x1234,0x5678,fr10
307         set_fr_iimmed   0x1111,0x1111,fr11
308         cmaddhss        fr10,fr11,fr12,cc1,1
309         test_fr_limmed  0xdead,0xbeef,fr12
310         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
311         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
312         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
313         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
315         set_fr_iimmed   0x1234,0x5678,fr10
316         set_fr_iimmed   0xffff,0xffff,fr11
317         cmaddhss        fr10,fr11,fr12,cc1,1
318         test_fr_limmed  0xdead,0xbeef,fr12
319         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
320         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
321         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
322         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
324         set_spr_immed   0,msr0
325         set_fr_iimmed   0x7ffe,0x7ffe,fr10
326         set_fr_iimmed   0x0002,0x0001,fr11
327         cmaddhss        fr10,fr11,fr12,cc5,1
328         test_fr_limmed  0xdead,0xbeef,fr12
329         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
330         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
331         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
332         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
334         set_spr_immed   0,msr0
335         set_fr_iimmed   0x8001,0x8001,fr10
336         set_fr_iimmed   0xffff,0xfffe,fr11
337         cmaddhss        fr10,fr11,fr12,cc5,1
338         test_fr_limmed  0xdead,0xbeef,fr12
339         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
340         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
341         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
342         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
344         set_spr_immed   0,msr0
345         set_fr_iimmed   0x8001,0x8001,fr10
346         set_fr_iimmed   0xfffe,0xfffe,fr11
347         cmaddhss        fr10,fr11,fr12,cc5,1
348         test_fr_limmed  0xdead,0xbeef,fr12
349         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
350         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
351         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
352         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
354         set_fr_iimmed   0xbeef,0xdead,fr13
355         set_spr_immed   0,msr0
356         set_fr_iimmed   0x0001,0x0001,fr10
357         set_fr_iimmed   0x7fff,0x7fff,fr11
358         cmaddhss.p      fr10,fr10,fr12,cc5,1
359         cmaddhss        fr11,fr11,fr13,cc5,1
360         test_fr_limmed  0xdead,0xbeef,fr12
361         test_fr_limmed  0xbeef,0xdead,fr13
362         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
363         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
364         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
365         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
367         set_fr_iimmed   0xdead,0xbeef,fr12
368         set_spr_immed   0,msr0
369         set_fr_iimmed   0x0000,0x0000,fr10
370         set_fr_iimmed   0x0000,0x0000,fr11
371         cmaddhss        fr10,fr11,fr12,cc2,1
372         test_fr_limmed  0xdead,0xbeef,fr12
373         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
374         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
375         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
376         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
378         set_fr_iimmed   0xdead,0x0000,fr10
379         set_fr_iimmed   0x0000,0xbeef,fr11
380         cmaddhss        fr10,fr11,fr12,cc2,0
381         test_fr_limmed  0xdead,0xbeef,fr12
382         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
383         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
384         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
385         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
387         set_fr_iimmed   0x0000,0xdead,fr10
388         set_fr_iimmed   0xbeef,0x0000,fr11
389         cmaddhss        fr10,fr11,fr12,cc2,1
390         test_fr_limmed  0xdead,0xbeef,fr12
391         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
392         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
393         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
394         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
396         set_fr_iimmed   0x1234,0x5678,fr10
397         set_fr_iimmed   0x1111,0x1111,fr11
398         cmaddhss        fr10,fr11,fr12,cc2,0
399         test_fr_limmed  0xdead,0xbeef,fr12
400         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
401         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
402         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
403         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
405         set_fr_iimmed   0x1234,0x5678,fr10
406         set_fr_iimmed   0xffff,0xffff,fr11
407         cmaddhss        fr10,fr11,fr12,cc2,1
408         test_fr_limmed  0xdead,0xbeef,fr12
409         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
410         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
411         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
412         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
414         set_spr_immed   0,msr0
415         set_fr_iimmed   0x7ffe,0x7ffe,fr10
416         set_fr_iimmed   0x0002,0x0001,fr11
417         cmaddhss        fr10,fr11,fr12,cc6,0
418         test_fr_limmed  0xdead,0xbeef,fr12
419         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
420         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
421         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
422         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
424         set_spr_immed   0,msr0
425         set_fr_iimmed   0x8001,0x8001,fr10
426         set_fr_iimmed   0xffff,0xfffe,fr11
427         cmaddhss        fr10,fr11,fr12,cc6,1
428         test_fr_limmed  0xdead,0xbeef,fr12
429         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
430         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
431         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
432         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
434         set_spr_immed   0,msr0
435         set_fr_iimmed   0x8001,0x8001,fr10
436         set_fr_iimmed   0xfffe,0xfffe,fr11
437         cmaddhss        fr10,fr11,fr12,cc6,0
438         test_fr_limmed  0xdead,0xbeef,fr12
439         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
440         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
441         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
442         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
444         set_fr_iimmed   0xbeef,0xdead,fr13
445         set_spr_immed   0,msr0
446         set_fr_iimmed   0x0001,0x0001,fr10
447         set_fr_iimmed   0x7fff,0x7fff,fr11
448         cmaddhss.p      fr10,fr10,fr12,cc6,1
449         cmaddhss        fr11,fr11,fr13,cc6,0
450         test_fr_limmed  0xdead,0xbeef,fr12
451         test_fr_limmed  0xbeef,0xdead,fr13
452         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
453         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
454         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
455         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
457         set_fr_iimmed   0xdead,0xbeef,fr12
458         set_spr_immed   0,msr0
459         set_fr_iimmed   0x0000,0x0000,fr10
460         set_fr_iimmed   0x0000,0x0000,fr11
461         cmaddhss        fr10,fr11,fr12,cc3,1
462         test_fr_limmed  0xdead,0xbeef,fr12
463         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
464         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
465         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
466         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
468         set_fr_iimmed   0xdead,0x0000,fr10
469         set_fr_iimmed   0x0000,0xbeef,fr11
470         cmaddhss        fr10,fr11,fr12,cc3,0
471         test_fr_limmed  0xdead,0xbeef,fr12
472         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
473         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
474         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
475         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
477         set_fr_iimmed   0x0000,0xdead,fr10
478         set_fr_iimmed   0xbeef,0x0000,fr11
479         cmaddhss        fr10,fr11,fr12,cc3,1
480         test_fr_limmed  0xdead,0xbeef,fr12
481         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
482         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
483         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
484         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
486         set_fr_iimmed   0x1234,0x5678,fr10
487         set_fr_iimmed   0x1111,0x1111,fr11
488         cmaddhss        fr10,fr11,fr12,cc3,0
489         test_fr_limmed  0xdead,0xbeef,fr12
490         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
491         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
492         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
493         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
495         set_fr_iimmed   0x1234,0x5678,fr10
496         set_fr_iimmed   0xffff,0xffff,fr11
497         cmaddhss        fr10,fr11,fr12,cc3,1
498         test_fr_limmed  0xdead,0xbeef,fr12
499         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
500         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
501         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
502         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
504         set_spr_immed   0,msr0
505         set_fr_iimmed   0x7ffe,0x7ffe,fr10
506         set_fr_iimmed   0x0002,0x0001,fr11
507         cmaddhss        fr10,fr11,fr12,cc7,0
508         test_fr_limmed  0xdead,0xbeef,fr12
509         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
510         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
511         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
512         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
514         set_spr_immed   0,msr0
515         set_fr_iimmed   0x8001,0x8001,fr10
516         set_fr_iimmed   0xffff,0xfffe,fr11
517         cmaddhss        fr10,fr11,fr12,cc7,1
518         test_fr_limmed  0xdead,0xbeef,fr12
519         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
520         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
521         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
522         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
524         set_spr_immed   0,msr0
525         set_fr_iimmed   0x8001,0x8001,fr10
526         set_fr_iimmed   0xfffe,0xfffe,fr11
527         cmaddhss        fr10,fr11,fr12,cc7,0
528         test_fr_limmed  0xdead,0xbeef,fr12
529         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
530         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
531         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
532         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
534         set_fr_iimmed   0xbeef,0xdead,fr13
535         set_spr_immed   0,msr0
536         set_fr_iimmed   0x0001,0x0001,fr10
537         set_fr_iimmed   0x7fff,0x7fff,fr11
538         cmaddhss.p      fr10,fr10,fr12,cc7,1
539         cmaddhss        fr11,fr11,fr13,cc7,0
540         test_fr_limmed  0xdead,0xbeef,fr12
541         test_fr_limmed  0xbeef,0xdead,fr13
542         test_spr_bits   0x3c,2,0,msr0           ; msr0.sie is clear
543         test_spr_bits   2,1,0,msr0              ; msr0.ovf not set
544         test_spr_bits   1,0,0,msr0              ; msr0.aovf not set
545         test_spr_bits   0x7000,12,1,msr0        ; msr0.mtt always set
547         pass