1 # frv testcase for cldsbu @($GRi,$GRj),$GRk,$CCi,$cond
4 .include "testutils.inc"
10 set_spr_immed 0x1b1b,cccr
13 set_mem_limmed 0xdead,0xbeef,sp
14 set_gr_limmed 0xbeef,0xdead,gr8
18 cldsbu @(sp,gr7),gr8,cc0,1
19 test_gr_limmed 0xffff,0xffde,gr8
24 cldsbu @(sp,gr7),gr8,cc0,1
25 test_gr_limmed 0xffff,0xffad,gr8
30 set_mem_limmed 0xffff,0xff00,sp
33 cldsbu @(sp,gr7),gr8,cc4,1
38 set_mem_limmed 0xdead,0xbeef,sp
39 set_gr_limmed 0xbeef,0xdead,gr8
43 cldsbu @(sp,gr7),gr8,cc0,0
44 test_gr_limmed 0xbeef,0xdead,gr8
48 cldsbu @(sp,gr7),gr8,cc0,0
49 test_gr_limmed 0xbeef,0xdead,gr8
52 set_mem_limmed 0xffff,0xff00,sp
56 cldsbu @(sp,gr7),gr8,cc4,0
57 test_gr_limmed 0xbeef,0xdead,gr8
61 set_mem_limmed 0xdead,0xbeef,sp
62 set_gr_limmed 0xbeef,0xdead,gr8
66 cldsbu @(sp,gr7),gr8,cc1,0
67 test_gr_limmed 0xffff,0xffde,gr8
72 cldsbu @(sp,gr7),gr8,cc1,0
73 test_gr_limmed 0xffff,0xffad,gr8
78 set_mem_limmed 0xffff,0xff00,sp
81 cldsbu @(sp,gr7),gr8,cc5,0
86 set_mem_limmed 0xdead,0xbeef,sp
87 set_gr_limmed 0xbeef,0xdead,gr8
91 cldsbu @(sp,gr7),gr8,cc1,1
92 test_gr_limmed 0xbeef,0xdead,gr8
96 cldsbu @(sp,gr7),gr8,cc1,1
97 test_gr_limmed 0xbeef,0xdead,gr8
100 set_mem_limmed 0xffff,0xff00,sp
104 cldsbu @(sp,gr7),gr8,cc5,1
105 test_gr_limmed 0xbeef,0xdead,gr8
109 set_mem_limmed 0xdead,0xbeef,sp
110 set_gr_limmed 0xbeef,0xdead,gr8
114 cldsbu @(sp,gr7),gr8,cc2,0
115 test_gr_limmed 0xbeef,0xdead,gr8
119 cldsbu @(sp,gr7),gr8,cc2,1
120 test_gr_limmed 0xbeef,0xdead,gr8
123 set_mem_limmed 0xffff,0xff00,sp
127 cldsbu @(sp,gr7),gr8,cc6,0
128 test_gr_limmed 0xbeef,0xdead,gr8
132 set_mem_limmed 0xdead,0xbeef,sp
133 set_gr_limmed 0xbeef,0xdead,gr8
137 cldsbu @(sp,gr7),gr8,cc3,1
138 test_gr_limmed 0xbeef,0xdead,gr8
142 cldsbu @(sp,gr7),gr8,cc3,0
143 test_gr_limmed 0xbeef,0xdead,gr8
146 set_mem_limmed 0xffff,0xff00,sp
150 cldsbu @(sp,gr7),gr8,cc7,1
151 test_gr_limmed 0xbeef,0xdead,gr8
155 set_mem_limmed 0xdead,0xbeef,sp
158 cldsbu @(gr8,gr7),gr8,cc0,1
159 test_gr_limmed 0xffff,0xffad,gr8