Mon Nov 16 19:27:52 1998 Dave Brolley <brolley@cygnus.com>
[external/binutils.git] / gas / testsuite / gas / fr30 / allinsn.s
1  .data
2 foodata: .word 42
3  .text
4 footext:
5         .text
6         .global add
7 add:
8         add r0, r1
9         add #0, r2
10         .text
11         .global add2
12 add2:
13         add2 #-1, r3
14         .text
15         .global addc
16 addc:
17         addc r4, r5
18         .text
19         .global addn
20 addn:
21         addn r6, r7
22         addn #15, r8
23         .text
24         .global addn2
25 addn2:
26         addn2 #-16, r9
27         .text
28         .global sub
29 sub:
30         sub r10, r11
31         .text
32         .global subc
33 subc:
34         subc r12, r13
35         .text
36         .global subn
37 subn:
38         subn r14, r15
39         .text
40         .global cmp
41 cmp:
42         cmp ac, fp
43         cmp #1, sp
44         .text
45         .global cmp2
46 cmp2:
47         cmp2 #-15, r0
48         .text
49         .global and
50 and:
51         and r1, r2
52         and r3, @r4
53         .text
54         .global andh
55 andh:
56         andh r5, @r6
57         .text
58         .global andb
59 andb:
60         andb r7, @r8
61         .text
62         .global or
63 or:
64         or r9, r10
65         or r11, @r12
66         .text
67         .global orh
68 orh:
69         orh r13, @r14
70         .text
71         .global orb
72 orb:
73         orb r15, @ac
74         .text
75         .global eor
76 eor:
77         eor fp, sp
78         eor r0, @r1
79         .text
80         .global eorh
81 eorh:
82         eorh r2, @r3
83         .text
84         .global eorb
85 eorb:
86         eorb r4, @r5
87         .text
88         .global bandl
89 bandl:
90         bandl #15, @r6
91         .text
92         .global bandh
93 nadh:
94         bandh #7, @r7
95         .text
96         .global borl
97 borl:
98         borl #3, @r8
99         .text
100         .global borh
101 borh:
102         borh #13, @r9
103         .text
104         .global beorl
105 beorl:
106         beorl #15, @r10
107         .text
108         .global beorh
109 beorh:
110         beorh #1, @r11
111         .text
112         .global btstl
113 btstl:
114         btstl #0, @r12
115         .text
116         .global btsth
117 btsth:
118         btsth #8, @r13
119         .text
120         .global mul
121 mul:
122         mul r14, r15
123         .text
124         .global mulu
125 mulu:
126         mulu ac, fp
127         .text
128         .global muluh
129 muluh:  
130         muluh sp, r0
131         .text
132         .global mulh
133 mulh:   
134         mulh r1, r2
135         .text
136         .global div0s
137 div0s:
138         div0s r3
139         .text
140         .global div0u
141 div0u:
142         div0u r4
143         .text
144         .global div1
145 div1:
146         div1 r5
147         .text
148         .global div2
149 div2:
150         div2 r6
151         .text
152         .global div3
153 div3:
154         div3
155         .text
156         .global div4s
157 div4s:
158         div4s
159         .text
160         .global lsl
161 lsl:
162         lsl r7, r8
163         lsl #3, r9
164         .text
165         .global lsl2
166 lsl2:
167         lsl2 #0, r10
168         .text
169         .global lsr
170 lsr:
171         lsr r11, r12
172         lsr #15, r13
173         .text
174         .global lsr2
175 lsr2:
176         lsr2 #15, r14
177         .text
178         .global asr
179 asr:
180         asr r15, ac
181         asr #6, fp
182         .text
183         .global asr2
184 asr2:
185         asr2 #7, sp
186         .text
187         .global ldi_32
188 ldi_32:
189         ldi:32 #0x12345678, r0
190         .text
191         .global ldi_20
192 ldi_20:
193         ldi:20 #0x000fffff, r1
194         .text
195         .global ldi_8
196 ldi_8:
197         ldi:8 #0xff, r2
198         .text
199         .global ld
200 ld:
201         ld @r3, r4
202         ld @(R13, r5), r6
203         ld @(R14, 0x1fc), r7
204         ld @(R15, 0x3c), r8
205         ld @r15+, r9
206         ld @R15+, pc
207         ld @r15+, ps
208         ld @R15+, tbr
209         ld @r15+, rp
210         ld @R15+, ssp
211         .text
212         .global lduh
213 lduh:
214         lduh @r10, r11
215         lduh @(r13, r12), r13
216         lduh @(r14, #-256), r15
217         .text
218         .global ldub
219 ldub:
220         ldub @ac, fp
221         ldub @(r13, sp), r0
222         ldub @(r14, -128), r1
223         .text
224         .global st
225 st:
226         st r2, @r3
227         st r4, @(r13, r5)
228         st r6, @(r14, -512)
229         st r7, @(r15, 0x3c)
230         st r8, @ - r15
231         st MDH, @-r15
232         st PS, @ - r15
233         .text
234         .global lsth
235 sth:
236         sth r9, @r10
237         sth r11, @(r13, r12)
238         sth r13, @(r14, 128)
239         .text
240         .global stb
241 stb:
242         STB r14, @r15
243         stb r0, @(r13, r1)
244         STB r2, @(r14, -128)
245         .text
246         .global mov
247 mov:
248         mov r3, r4
249         MOV mdl, r5
250         mov ps, r6
251         mov r7, usp
252         mov r8, ps
253         .text
254         .global jmp
255 jmp:
256         jmp @r9
257         .text
258         .global call
259 call:
260         call footext
261         call @r10
262         .text
263         .global ret
264 ret:
265         ret
266         .text
267         .global int
268 int:
269         int #255
270         .text
271         .global inte
272 inte:
273         inte
274         .text
275         .global reti
276 reti:
277         reti
278         .text
279         .global bra
280 bra:
281         bra footext
282         .text
283         .global bno
284 bno:
285         bno footext
286         .text
287         .global beq
288 beq:
289         beq footext
290         .text
291         .global bne
292 bne:
293         bne footext
294         .text
295         .global bc
296 bc:
297         bc footext
298         .text
299         .global bnc
300 bnc:
301         bnc footext
302         .text
303         .global bn
304 bn:
305         bn footext
306         .text
307         .global bp
308 bp:
309         bp footext
310         .text
311         .global bv
312 bv:
313         bv footext
314         .text
315         .global bnv
316 bnv:
317         bnv footext
318         .text
319         .global blt
320 blt:
321         blt footext
322         .text
323         .global bge
324 bge:
325         bge footext
326         .text
327         .global ble
328 ble:
329         ble footext
330         .text
331         .global bgt
332 bgt:
333         bgt footext
334         .text
335         .global bls
336 bls:
337         bls footext
338         .text
339         .global bhi
340 bhi:
341         bhi footext
342         .text
343         .global jmp_d
344 jmp_d:
345         jmp:d @r11
346         nop
347         .text
348         .global call_d
349 call_d:
350         call:D footext
351         nop
352         call:d @r12
353         nop
354         .text
355         .global ret_d
356 ret_d:
357         ret:d
358         nop
359         .text
360         .global bra_d
361 bra_d:
362         bra:D footext
363         .text
364         .global bno_d
365 bno_d:
366         bno:d footext
367         .text
368         .global beq_d
369 beq_d:
370         beq:D footext
371         .text
372         .global bne_d
373 bne_d:
374         bne:d footext
375         .text
376         .global bc_d
377 bc_d:
378         bc:d footext
379         .text
380         .global bnc_d
381 bnc_d:
382         bnc:d footext
383         .text
384         .global bn_d
385 bn_d:
386         bn:d footext
387         .text
388         .global bp_d
389 bp_d:
390         bp:d footext
391         .text
392         .global bv_d
393 bv_d:
394         bv:d footext
395         .text
396         .global bnv_d
397 bnv_d:
398         bnv:d footext
399         .text
400         .global blt_d
401 blt_d:
402         blt:d footext
403         .text
404         .global bge_d
405 bge_d:
406         bge:d footext
407         .text
408         .global ble_d
409 ble_d:
410         ble:d footext
411         .text
412         .global bgt_d
413 bgt_d:
414         bgt:d footext
415         .text
416         .global bls_d
417 bls_d:
418         bls:d footext
419         .text
420         .global bhi_d
421 bhi_d:
422         bhi:d footext
423         .text
424         .global dmov
425 dmov:
426         dmov @88H, r13
427         dmov r13, @54H
428         dmov @0x44, @r13+
429         dmov @R13+, @2
430         dmov @2cH, @-r15
431         dmov @r15+, @38
432         .text
433         .global dmovh
434 dmovh:
435         dmovh @88H, r13
436         dmovh r13, @52h
437         dmovh @0x34, @r13 +
438         dmovh @r13+, @0x52
439         .text
440         .global dmovb
441 dmovb:
442         dmovb @91H, r13
443         dmovb r13, @0x53
444         dmovb @71, @r13+
445         dmovb @r13+, @0
446         .text
447         .global ldres
448 ldres:
449         ldres @r2+, #8
450         .text
451         .global stres
452 stres:
453         stres #15, @r3+
454         .text
455         .global copop
456 copop:
457         copop #15, #1, cr3, cr4
458         copop #15, #4, cr5, cr6
459         copop #15, #255, cr7, cr0
460         .text
461         .global copld
462 copld:
463         copld #0, #0, r4, cr0
464         .text
465         .global copst
466 copst:
467         copst #7, #2, cr1, r5
468         .text
469         .global copsv
470 copsv:
471         copsv #8, #3, cr2, r6
472         .text
473         .global nop
474 nop:
475         nop
476         .text
477         .global andccr
478 andccr:
479         andccr #255
480         .text
481         .global orccr
482 orccr:
483         orccr #125
484         .text
485         .global stilm
486 stilm:
487         stilm #97
488         .text
489         .global addsp
490 addsp:
491         addsp #-512
492         .text
493         .global extsb
494 extsb:
495         extsb r9
496         .text
497         .global extub
498 extub:
499         extub r10
500         .text
501         .global extsh
502 extsh:
503         extsh r11
504         .text
505         .global extuh
506 extuh:
507         extuh r12
508         .text
509         .global ldm0
510 ldm0:
511         ldm0 (r0, r2, r3, r7)
512         .text
513         .global ldm1
514 ldm1:
515         ldm1 (r8, r11, sp)
516         .text
517         .global stm0
518 stm0:
519         stm0 (r2, r3)
520         .text
521         .global stm1
522 stm1:
523         stm1 (ac, fp)
524         .text
525         .global enter
526 enter:
527         enter #1020
528         .text
529         .global leave
530 leave:
531         leave 
532         .text
533         .global xchb
534 xchb:
535         xchb @r14, r15