summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/hppa/basic/coprmem.s
blob: c5d56cf553b873fd2c0701a52a7747c2e10b475d (plain)
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
	.code
	.align 4
; Basic copr memory tests which also test the various 
; addressing modes and completers.
;
; We could/should test some of the corner cases for register and 
; immediate fields.  We should also check the assorted field
; selectors to make sure they're handled correctly.
; 
copr_indexing_load 

	cldwx,4 %r5(%sr0,%r4),%r26
	cldwx,4,s %r5(%sr0,%r4),%r26
	cldwx,4,m %r5(%sr0,%r4),%r26
	cldwx,4,sm %r5(%sr0,%r4),%r26
	clddx,4 %r5(%sr0,%r4),%r26
	clddx,4,s %r5(%sr0,%r4),%r26
	clddx,4,m %r5(%sr0,%r4),%r26
	clddx,4,sm %r5(%sr0,%r4),%r26

copr_indexing_store 
	cstwx,4 %r26,%r5(%sr0,%r4)
	cstwx,4,s %r26,%r5(%sr0,%r4)
	cstwx,4,m %r26,%r5(%sr0,%r4)
	cstwx,4,sm %r26,%r5(%sr0,%r4)
	cstdx,4 %r26,%r5(%sr0,%r4)
	cstdx,4,s %r26,%r5(%sr0,%r4)
	cstdx,4,m %r26,%r5(%sr0,%r4)
	cstdx,4,sm %r26,%r5(%sr0,%r4)

copr_short_memory 
	cldws,4 0(%sr0,%r4),%r26
	cldws,4,mb 0(%sr0,%r4),%r26
	cldws,4,ma 0(%sr0,%r4),%r26
	cldds,4 0(%sr0,%r4),%r26
	cldds,4,mb 0(%sr0,%r4),%r26
	cldds,4,ma 0(%sr0,%r4),%r26
	cstws,4 %r26,0(%sr0,%r4)
	cstws,4,mb %r26,0(%sr0,%r4)
	cstws,4,ma %r26,0(%sr0,%r4)
	cstds,4 %r26,0(%sr0,%r4)
	cstds,4,mb %r26,0(%sr0,%r4)
	cstds,4,ma %r26,0(%sr0,%r4)

; gas fucks this up thinks it gets the expression 4 modulo 5
;	cldwx,4 %r5(0,%r4),%r%r26