2 .SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31
3 .SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82
5 .SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44
6 .SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY
12 .EXPORT integer_memory_tests,CODE
13 .EXPORT integer_indexing_load,CODE
14 .EXPORT integer_load_short_memory,CODE
15 .EXPORT integer_store_short_memory,CODE
17 .EXPORT main,ENTRY,PRIV_LEV=3,RTNVAL=GR
18 ; Basic integer memory tests which also test the various
19 ; addressing modes and completers.
21 ; We could/should test some of the corner cases for register and
22 ; immediate fields. We should also check the assorted field
23 ; selectors to make sure they're handled correctly.
33 ; Should make sure pre/post modes are recognized correctly.
37 integer_indexing_load:
39 ldwx,s %r5(0,%r4),%r26
40 ldwx,m %r5(0,%r4),%r26
41 ldwx,sm %r5(0,%r4),%r26
43 ldhx,s %r5(0,%r4),%r26
44 ldhx,m %r5(0,%r4),%r26
45 ldhx,sm %r5(0,%r4),%r26
47 ldbx,s %r5(0,%r4),%r26
48 ldbx,m %r5(0,%r4),%r26
49 ldbx,sm %r5(0,%r4),%r26
53 ldwax,sm %r5(%r4),%r26
55 ldcwx,s %r5(0,%r4),%r26
56 ldcwx,m %r5(0,%r4),%r26
57 ldcwx,sm %r5(0,%r4),%r26
59 integer_load_short_memory:
73 ldcws,mb 0(0,%r4),%r26
74 ldcws,ma 0(0,%r4),%r26
76 integer_store_short_memory:
92 stbys,b,m %r26,0(0,%r4)
93 stbys,e,m %r26,0(0,%r4)