Initial revision
[binutils.git] / gas / testsuite / gas / hppa / basic / coprmem.s
blob7eff1516bd4444179ddd2ea07c8a06b442259a3f
1 .SPACE $PRIVATE$
2 .SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31
3 .SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82
4 .SPACE $TEXT$
5 .SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44
6 .SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY
8 .SPACE $TEXT$
9 .SUBSPA $CODE$
11 .align 4
12 ; Basic copr memory tests which also test the various
13 ; addressing modes and completers.
15 ; We could/should test some of the corner cases for register and
16 ; immediate fields. We should also check the assorted field
17 ; selectors to make sure they're handled correctly.
19 copr_indexing_load
21 cldwx,4 %r5(%sr0,%r4),%r26
22 cldwx,4,s %r5(%sr0,%r4),%r26
23 cldwx,4,m %r5(%sr0,%r4),%r26
24 cldwx,4,sm %r5(%sr0,%r4),%r26
25 clddx,4 %r5(%sr0,%r4),%r26
26 clddx,4,s %r5(%sr0,%r4),%r26
27 clddx,4,m %r5(%sr0,%r4),%r26
28 clddx,4,sm %r5(%sr0,%r4),%r26
30 copr_indexing_store
31 cstwx,4 %r26,%r5(%sr0,%r4)
32 cstwx,4,s %r26,%r5(%sr0,%r4)
33 cstwx,4,m %r26,%r5(%sr0,%r4)
34 cstwx,4,sm %r26,%r5(%sr0,%r4)
35 cstdx,4 %r26,%r5(%sr0,%r4)
36 cstdx,4,s %r26,%r5(%sr0,%r4)
37 cstdx,4,m %r26,%r5(%sr0,%r4)
38 cstdx,4,sm %r26,%r5(%sr0,%r4)
40 copr_short_memory
41 cldws,4 0(%sr0,%r4),%r26
42 cldws,4,mb 0(%sr0,%r4),%r26
43 cldws,4,ma 0(%sr0,%r4),%r26
44 cldds,4 0(%sr0,%r4),%r26
45 cldds,4,mb 0(%sr0,%r4),%r26
46 cldds,4,ma 0(%sr0,%r4),%r26
47 cstws,4 %r26,0(%sr0,%r4)
48 cstws,4,mb %r26,0(%sr0,%r4)
49 cstws,4,ma %r26,0(%sr0,%r4)
50 cstds,4 %r26,0(%sr0,%r4)
51 cstds,4,mb %r26,0(%sr0,%r4)
52 cstds,4,ma %r26,0(%sr0,%r4)
54 ; gas fucks this up thinks it gets the expression 4 modulo 5
55 ; cldwx,4 %r5(0,%r4),%r%r26