Statistics
| Branch: | Revision:

root / tests / cris / check_lsr.s @ ea4b07f7

History | View | Annotate | Download (3.2 kB)

1 dd43edf4 ths
# mach: crisv0 crisv3 crisv8 crisv10 crisv32
2 dd43edf4 ths
# output: ffffffff\n1\n1\n1ffff\n5a67f\n1\n0\n0\n3699fc67\nffffffff\n1\n1\n1ffff\n5a67f\nda670000\nda670000\nda670000\nda673c67\nffffffff\nffff7fff\n1\nffff0000\nffff0001\n5a67000f\nda67f100\nda67f100\nda67f100\nda67f127\nffffffff\nffffff7f\n1\nffffff00\nffffff00\nffffff01\n5a67f100\n5a67f109\n
3 dd43edf4 ths
4 dd43edf4 ths
 .include "testutils.inc"
5 dd43edf4 ths
 start
6 dd43edf4 ths
 moveq -1,r3
7 dd43edf4 ths
 lsrq 0,r3
8 dd43edf4 ths
 test_move_cc 1 0 0 0
9 dd43edf4 ths
 checkr3 ffffffff
10 dd43edf4 ths
11 dd43edf4 ths
 moveq 2,r3
12 dd43edf4 ths
 lsrq 1,r3
13 dd43edf4 ths
 test_move_cc 0 0 0 0
14 dd43edf4 ths
 checkr3 1
15 dd43edf4 ths
16 dd43edf4 ths
 moveq -1,r3
17 dd43edf4 ths
 lsrq 31,r3
18 dd43edf4 ths
 test_move_cc 0 0 0 0
19 dd43edf4 ths
 checkr3 1
20 dd43edf4 ths
21 dd43edf4 ths
 moveq -1,r3
22 dd43edf4 ths
 lsrq 15,r3
23 dd43edf4 ths
 test_move_cc 0 0 0 0
24 dd43edf4 ths
 checkr3 1ffff
25 dd43edf4 ths
26 dd43edf4 ths
 move.d 0x5a67f19f,r3
27 dd43edf4 ths
 lsrq 12,r3
28 dd43edf4 ths
 test_move_cc 0 0 0 0
29 dd43edf4 ths
 checkr3 5a67f
30 dd43edf4 ths
31 dd43edf4 ths
 move.d 0xda67f19f,r3
32 dd43edf4 ths
 move.d 31,r4
33 dd43edf4 ths
 lsr.d r4,r3
34 dd43edf4 ths
 test_move_cc 0 0 0 0
35 dd43edf4 ths
 checkr3 1
36 dd43edf4 ths
37 dd43edf4 ths
 move.d 0xda67f19f,r3
38 dd43edf4 ths
 move.d 32,r4
39 dd43edf4 ths
 lsr.d r4,r3
40 dd43edf4 ths
 test_move_cc 0 1 0 0
41 dd43edf4 ths
 checkr3 0
42 dd43edf4 ths
43 dd43edf4 ths
 move.d 0xda67f19f,r3
44 dd43edf4 ths
 move.d 33,r4
45 dd43edf4 ths
 lsr.d r4,r3
46 dd43edf4 ths
 test_move_cc 0 1 0 0
47 dd43edf4 ths
 checkr3 0
48 dd43edf4 ths
49 dd43edf4 ths
 move.d 0xda67f19f,r3
50 dd43edf4 ths
 move.d 66,r4
51 dd43edf4 ths
 lsr.d r4,r3
52 dd43edf4 ths
 test_move_cc 0 0 0 0
53 dd43edf4 ths
 checkr3 3699fc67
54 dd43edf4 ths
55 dd43edf4 ths
 moveq -1,r3
56 dd43edf4 ths
 moveq 0,r4
57 dd43edf4 ths
 lsr.d r4,r3
58 dd43edf4 ths
 test_move_cc 1 0 0 0
59 dd43edf4 ths
 checkr3 ffffffff
60 dd43edf4 ths
61 dd43edf4 ths
 moveq 2,r3
62 dd43edf4 ths
 moveq 1,r4
63 dd43edf4 ths
 lsr.d r4,r3
64 dd43edf4 ths
 test_move_cc 0 0 0 0
65 dd43edf4 ths
 checkr3 1
66 dd43edf4 ths
67 dd43edf4 ths
 moveq -1,r3
68 dd43edf4 ths
 moveq 31,r4
69 dd43edf4 ths
 lsr.d r4,r3
70 dd43edf4 ths
 test_move_cc 0 0 0 0
71 dd43edf4 ths
 checkr3 1
72 dd43edf4 ths
73 dd43edf4 ths
 moveq -1,r3
74 dd43edf4 ths
 moveq 15,r4
75 dd43edf4 ths
 lsr.d r4,r3
76 dd43edf4 ths
 test_move_cc 0 0 0 0
77 dd43edf4 ths
 checkr3 1ffff
78 dd43edf4 ths
79 dd43edf4 ths
 move.d 0x5a67f19f,r3
80 dd43edf4 ths
 moveq 12,r4
81 dd43edf4 ths
 lsr.d r4,r3
82 dd43edf4 ths
 test_move_cc 0 0 0 0
83 dd43edf4 ths
 checkr3 5a67f
84 dd43edf4 ths
85 dd43edf4 ths
 move.d 0xda67f19f,r3
86 dd43edf4 ths
 move.d 31,r4
87 dd43edf4 ths
 lsr.w r4,r3
88 dd43edf4 ths
 test_move_cc 0 1 0 0
89 dd43edf4 ths
 checkr3 da670000
90 dd43edf4 ths
91 dd43edf4 ths
 move.d 0xda67f19f,r3
92 dd43edf4 ths
 move.d 32,r4
93 dd43edf4 ths
 lsr.w r4,r3
94 dd43edf4 ths
 test_move_cc 0 1 0 0
95 dd43edf4 ths
 checkr3 da670000
96 dd43edf4 ths
97 dd43edf4 ths
 move.d 0xda67f19f,r3
98 dd43edf4 ths
 move.d 33,r4
99 dd43edf4 ths
 lsr.w r4,r3
100 dd43edf4 ths
 test_move_cc 0 1 0 0
101 dd43edf4 ths
 checkr3 da670000
102 dd43edf4 ths
103 dd43edf4 ths
 move.d 0xda67f19f,r3
104 dd43edf4 ths
 move.d 66,r4
105 dd43edf4 ths
 lsr.w r4,r3
106 dd43edf4 ths
 test_move_cc 0 0 0 0
107 dd43edf4 ths
 checkr3 da673c67
108 dd43edf4 ths
109 dd43edf4 ths
 moveq -1,r3
110 dd43edf4 ths
 moveq 0,r4
111 dd43edf4 ths
 lsr.w r4,r3
112 dd43edf4 ths
 test_move_cc 1 0 0 0
113 dd43edf4 ths
 checkr3 ffffffff
114 dd43edf4 ths
115 dd43edf4 ths
 moveq -1,r3
116 dd43edf4 ths
 moveq 1,r4
117 dd43edf4 ths
 lsr.w r4,r3
118 dd43edf4 ths
 test_move_cc 0 0 0 0
119 dd43edf4 ths
 checkr3 ffff7fff
120 dd43edf4 ths
121 dd43edf4 ths
 moveq 2,r3
122 dd43edf4 ths
 moveq 1,r4
123 dd43edf4 ths
 lsr.w r4,r3
124 dd43edf4 ths
 test_move_cc 0 0 0 0
125 dd43edf4 ths
 checkr3 1
126 dd43edf4 ths
127 dd43edf4 ths
;; FIXME: this was wrong. Z should be set.
128 dd43edf4 ths
 moveq -1,r3
129 dd43edf4 ths
 moveq 31,r4
130 dd43edf4 ths
 lsr.w r4,r3
131 dd43edf4 ths
 test_move_cc 0 1 0 0
132 dd43edf4 ths
 checkr3 ffff0000
133 dd43edf4 ths
134 dd43edf4 ths
 moveq -1,r3
135 dd43edf4 ths
 moveq 15,r4
136 dd43edf4 ths
 lsr.w r4,r3
137 dd43edf4 ths
 test_move_cc 0 0 0 0
138 dd43edf4 ths
 checkr3 ffff0001
139 dd43edf4 ths
140 dd43edf4 ths
 move.d 0x5a67f19f,r3
141 dd43edf4 ths
 moveq 12,r4
142 dd43edf4 ths
 lsr.w r4,r3
143 dd43edf4 ths
 test_move_cc 0 0 0 0
144 dd43edf4 ths
 checkr3 5a67000f
145 dd43edf4 ths
146 dd43edf4 ths
 move.d 0xda67f19f,r3
147 dd43edf4 ths
 move.d 31,r4
148 dd43edf4 ths
 lsr.b r4,r3
149 dd43edf4 ths
 test_move_cc 0 1 0 0
150 dd43edf4 ths
 checkr3 da67f100
151 dd43edf4 ths
152 dd43edf4 ths
 move.d 0xda67f19f,r3
153 dd43edf4 ths
 move.d 32,r4
154 dd43edf4 ths
 lsr.b r4,r3
155 dd43edf4 ths
 test_move_cc 0 1 0 0
156 dd43edf4 ths
 checkr3 da67f100
157 dd43edf4 ths
158 dd43edf4 ths
 move.d 0xda67f19f,r3
159 dd43edf4 ths
 move.d 33,r4
160 dd43edf4 ths
 lsr.b r4,r3
161 dd43edf4 ths
 test_move_cc 0 1 0 0
162 dd43edf4 ths
 checkr3 da67f100
163 dd43edf4 ths
164 dd43edf4 ths
 move.d 0xda67f19f,r3
165 dd43edf4 ths
 move.d 66,r4
166 dd43edf4 ths
 lsr.b r4,r3
167 dd43edf4 ths
 test_move_cc 0 0 0 0
168 dd43edf4 ths
 checkr3 da67f127
169 dd43edf4 ths
170 dd43edf4 ths
 moveq -1,r3
171 dd43edf4 ths
 moveq 0,r4
172 dd43edf4 ths
 lsr.b r4,r3
173 dd43edf4 ths
 test_move_cc 1 0 0 0
174 dd43edf4 ths
 checkr3 ffffffff
175 dd43edf4 ths
176 dd43edf4 ths
 moveq -1,r3
177 dd43edf4 ths
 moveq 1,r4
178 dd43edf4 ths
 lsr.b r4,r3
179 dd43edf4 ths
 test_move_cc 0 0 0 0
180 dd43edf4 ths
 checkr3 ffffff7f
181 dd43edf4 ths
182 dd43edf4 ths
 moveq 2,r3
183 dd43edf4 ths
 moveq 1,r4
184 dd43edf4 ths
 lsr.b r4,r3
185 dd43edf4 ths
 test_move_cc 0 0 0 0
186 dd43edf4 ths
 checkr3 1
187 dd43edf4 ths
188 dd43edf4 ths
 moveq -1,r3
189 dd43edf4 ths
 moveq 31,r4
190 dd43edf4 ths
 lsr.b r4,r3
191 dd43edf4 ths
 test_move_cc 0 1 0 0
192 dd43edf4 ths
 checkr3 ffffff00
193 dd43edf4 ths
194 dd43edf4 ths
 moveq -1,r3
195 dd43edf4 ths
 moveq 15,r4
196 dd43edf4 ths
 lsr.b r4,r3
197 dd43edf4 ths
 test_move_cc 0 1 0 0
198 dd43edf4 ths
 checkr3 ffffff00
199 dd43edf4 ths
200 dd43edf4 ths
 moveq -1,r3
201 dd43edf4 ths
 moveq 7,r4
202 dd43edf4 ths
 lsr.b r4,r3
203 dd43edf4 ths
 test_move_cc 0 0 0 0
204 dd43edf4 ths
 checkr3 ffffff01
205 dd43edf4 ths
206 dd43edf4 ths
 move.d 0x5a67f19f,r3
207 dd43edf4 ths
 moveq 12,r4
208 dd43edf4 ths
 lsr.b r4,r3
209 dd43edf4 ths
 test_move_cc 0 1 0 0
210 dd43edf4 ths
 checkr3 5a67f100
211 dd43edf4 ths
212 dd43edf4 ths
 move.d 0x5a67f19f,r3
213 dd43edf4 ths
 moveq 4,r4
214 dd43edf4 ths
 lsr.b r4,r3
215 dd43edf4 ths
 test_move_cc 0 0 0 0
216 dd43edf4 ths
 checkr3 5a67f109
217 dd43edf4 ths
218 dd43edf4 ths
 quit