1 # sh testcase for pdmsb
3 # as(shdsp): -defsym sim_cpu=1 -dsp
5 .include "testutils.inc"
20 # assert_sreg 31<<16, x1
23 assert_sreg
30<<16, x1
26 assert_sreg
29<<16, x1
29 assert_sreg
28<<16, x1
32 assert_sreg
27<<16, x1
35 assert_sreg
26<<16, x1
38 assert_sreg
25<<16, x1
41 assert_sreg
24<<16, x1
44 assert_sreg
23<<16, x1
48 assert_sreg
22<<16, x1
51 assert_sreg
21<<16, x1
54 assert_sreg
20<<16, x1
57 assert_sreg
19<<16, x1
60 assert_sreg
18<<16, x1
63 assert_sreg
17<<16, x1
66 assert_sreg
16<<16, x1
69 assert_sreg
15<<16, x1
73 assert_sreg
14<<16, x1
76 assert_sreg
13<<16, x1
79 assert_sreg
12<<16, x1
82 assert_sreg
11<<16, x1
85 assert_sreg
10<<16, x1
96 set_sreg
0x1ffffff, x0
99 set_sreg
0x3ffffff, x0
101 assert_sreg
5<<16, x1
102 set_sreg
0x7ffffff, x0
104 assert_sreg
4<<16, x1
105 set_sreg
0xfffffff, x0
107 assert_sreg
3<<16, x1
108 set_sreg
0x1fffffff, x0
110 assert_sreg
2<<16, x1
111 set_sreg
0x3fffffff, x0
113 assert_sreg
1<<16, x1
114 set_sreg
0x7fffffff, x0
116 assert_sreg
0<<16, x1
117 set_sreg
0xffffffff, x0
119 # assert_sreg 31<<16, x1
121 set_sreg
0xfffffffe, x0
123 assert_sreg
30<<16, x1
124 set_sreg
0xfffffffc, x0
126 assert_sreg
29<<16, x1
127 set_sreg
0xfffffff8, x0
129 assert_sreg
28<<16, x1
130 set_sreg
0xfffffff0, x0
132 assert_sreg
27<<16, x1
133 set_sreg
0xffffffe0, x0
135 assert_sreg
26<<16, x1
136 set_sreg
0xffffffc0, x0
138 assert_sreg
25<<16, x1
139 set_sreg
0xffffff80, x0
141 assert_sreg
24<<16, x1
142 set_sreg
0xffffff00, x0
144 assert_sreg
23<<16, x1
146 set_sreg
0xfffffe00, x0
148 assert_sreg
22<<16, x1
149 set_sreg
0xfffffc00, x0
151 assert_sreg
21<<16, x1
152 set_sreg
0xfffff800, x0
154 assert_sreg
20<<16, x1
155 set_sreg
0xfffff000, x0
157 assert_sreg
19<<16, x1
158 set_sreg
0xffffe000, x0
160 assert_sreg
18<<16, x1
161 set_sreg
0xffffc000, x0
163 assert_sreg
17<<16, x1
164 set_sreg
0xffff8000, x0
166 assert_sreg
16<<16, x1
167 set_sreg
0xffff0000, x0
169 assert_sreg
15<<16, x1
171 set_sreg
0xfffe0000, x0
173 assert_sreg
14<<16, x1
174 set_sreg
0xfffc0000, x0
176 assert_sreg
13<<16, x1
177 set_sreg
0xfff80000, x0
179 assert_sreg
12<<16, x1
180 set_sreg
0xfff00000, x0
182 assert_sreg
11<<16, x1
183 set_sreg
0xffe00000, x0
185 assert_sreg
10<<16, x1
186 set_sreg
0xffc00000, x0
188 assert_sreg
9<<16, x1
189 set_sreg
0xff800000, x0
191 assert_sreg
8<<16, x1
192 set_sreg
0xff000000, x0
194 assert_sreg
7<<16, x1
196 set_sreg
0xfe000000, x0
198 assert_sreg
6<<16, x1
199 set_sreg
0xfc000000, x0
201 assert_sreg
5<<16, x1
202 set_sreg
0xf8000000, x0
204 assert_sreg
4<<16, x1
205 set_sreg
0xf0000000, x0
207 assert_sreg
3<<16, x1
208 set_sreg
0xe0000000, x0
210 assert_sreg
2<<16, x1
211 set_sreg
0xc0000000, x0
213 assert_sreg
1<<16, x1
214 set_sreg
0x80000000, x0
216 assert_sreg
0<<16, x1
217 set_sreg
0x00000000, x0
219 # assert_sreg 31<<16, x1
222 assert_sreg
0xa5a5a5a5, y0
223 assert_sreg
0xa5a5a5a5, y1
224 assert_sreg
0xa5a5a5a5, a0
225 assert_sreg2
0xa5a5a5a5, a1
226 assert_sreg2
0xa5a5a5a5, m0
227 assert_sreg2
0xa5a5a5a5, m1