Commit | Line | Data |
---|---|---|
5e1f6430 HPN |
1 | # mach: crisv0 crisv3 crisv8 crisv10 crisv32 |
2 | # output: ffffffff\n1\nffffffff\nffffffff\n5a67f\nffffffff\nffffffff\nffffffff\nf699fc67\nffffffff\n1\nffffffff\nffffffff\n5a67f\nda67ffff\nda67ffff\nda67ffff\nda67fc67\nffffffff\nffffffff\n1\nffffffff\nffffffff\n5a670007\nda67f1ff\nda67f1ff\nda67f1ff\nda67f1e7\nffffffff\nffffffff\n1\nffffffff\nffffffff\nffffffff\n5a67f1ff\n5a67f1f9\n0\n5a670000\n | |
3 | ||
4 | .include "testutils.inc" | |
5 | start | |
6 | moveq -1,r3 | |
7 | asrq 0,r3 | |
8 | test_move_cc 1 0 0 0 | |
9 | dumpr3 ; ffffffff | |
10 | ||
11 | moveq 2,r3 | |
12 | asrq 1,r3 | |
13 | test_move_cc 0 0 0 0 | |
14 | dumpr3 ; 1 | |
15 | ||
16 | moveq -1,r3 | |
17 | asrq 31,r3 | |
18 | test_move_cc 1 0 0 0 | |
19 | dumpr3 ; ffffffff | |
20 | ||
21 | moveq -1,r3 | |
22 | asrq 15,r3 | |
23 | test_move_cc 1 0 0 0 | |
24 | dumpr3 ; ffffffff | |
25 | ||
26 | move.d 0x5a67f19f,r3 | |
27 | asrq 12,r3 | |
28 | test_move_cc 0 0 0 0 | |
29 | dumpr3 ; 5a67f | |
30 | ||
31 | move.d 0xda67f19f,r3 | |
32 | move.d 31,r4 | |
33 | asr.d r4,r3 | |
34 | test_move_cc 1 0 0 0 | |
35 | dumpr3 ; ffffffff | |
36 | ||
37 | move.d 0xda67f19f,r3 | |
38 | move.d 32,r4 | |
39 | asr.d r4,r3 | |
40 | test_move_cc 1 0 0 0 | |
41 | dumpr3 ; ffffffff | |
42 | ||
43 | move.d 0xda67f19f,r3 | |
44 | move.d 33,r4 | |
45 | asr.d r4,r3 | |
46 | test_move_cc 1 0 0 0 | |
47 | dumpr3 ; ffffffff | |
48 | ||
49 | move.d 0xda67f19f,r3 | |
50 | move.d 66,r4 | |
51 | asr.d r4,r3 | |
52 | test_move_cc 1 0 0 0 | |
53 | dumpr3 ; f699fc67 | |
54 | ||
55 | moveq -1,r3 | |
56 | moveq 0,r4 | |
57 | asr.d r4,r3 | |
58 | test_move_cc 1 0 0 0 | |
59 | dumpr3 ; ffffffff | |
60 | ||
61 | moveq 2,r3 | |
62 | moveq 1,r4 | |
63 | asr.d r4,r3 | |
64 | test_move_cc 0 0 0 0 | |
65 | dumpr3 ; 1 | |
66 | ||
67 | moveq -1,r3 | |
68 | moveq 31,r4 | |
69 | asr.d r4,r3 | |
70 | test_move_cc 1 0 0 0 | |
71 | dumpr3 ; ffffffff | |
72 | ||
73 | moveq -1,r3 | |
74 | moveq 15,r4 | |
75 | asr.d r4,r3 | |
76 | test_move_cc 1 0 0 0 | |
77 | dumpr3 ; ffffffff | |
78 | ||
79 | move.d 0x5a67f19f,r3 | |
80 | moveq 12,r4 | |
81 | asr.d r4,r3 | |
82 | test_move_cc 0 0 0 0 | |
83 | dumpr3 ; 5a67f | |
84 | ||
85 | move.d 0xda67f19f,r3 | |
86 | move.d 31,r4 | |
87 | asr.w r4,r3 | |
88 | test_move_cc 1 0 0 0 | |
89 | dumpr3 ; da67ffff | |
90 | ||
91 | move.d 0xda67f19f,r3 | |
92 | move.d 32,r4 | |
93 | asr.w r4,r3 | |
94 | test_move_cc 1 0 0 0 | |
95 | dumpr3 ; da67ffff | |
96 | ||
97 | move.d 0xda67f19f,r3 | |
98 | move.d 33,r4 | |
99 | asr.w r4,r3 | |
100 | test_move_cc 1 0 0 0 | |
101 | dumpr3 ; da67ffff | |
102 | ||
103 | move.d 0xda67f19f,r3 | |
104 | move.d 66,r4 | |
105 | asr.w r4,r3 | |
106 | test_move_cc 1 0 0 0 | |
107 | dumpr3 ; da67fc67 | |
108 | ||
109 | moveq -1,r3 | |
110 | moveq 0,r4 | |
111 | asr.w r4,r3 | |
112 | test_move_cc 1 0 0 0 | |
113 | dumpr3 ; ffffffff | |
114 | ||
115 | moveq -1,r3 | |
116 | moveq 1,r4 | |
117 | asr.w r4,r3 | |
118 | test_move_cc 1 0 0 0 | |
119 | dumpr3 ; ffffffff | |
120 | ||
121 | moveq 2,r3 | |
122 | moveq 1,r4 | |
123 | asr.w r4,r3 | |
124 | test_move_cc 0 0 0 0 | |
125 | dumpr3 ; 1 | |
126 | ||
127 | moveq -1,r3 | |
128 | moveq 31,r4 | |
129 | asr.w r4,r3 | |
130 | test_move_cc 1 0 0 0 | |
131 | dumpr3 ; ffffffff | |
132 | ||
133 | moveq -1,r3 | |
134 | moveq 15,r4 | |
135 | asr.w r4,r3 | |
136 | test_move_cc 1 0 0 0 | |
137 | dumpr3 ; ffffffff | |
138 | ||
139 | move.d 0x5a67719f,r3 | |
140 | moveq 12,r4 | |
141 | asr.w r4,r3 | |
142 | test_move_cc 0 0 0 0 | |
143 | dumpr3 ; 5a670007 | |
144 | ||
145 | move.d 0xda67f19f,r3 | |
146 | move.d 31,r4 | |
147 | asr.b r4,r3 | |
148 | test_move_cc 1 0 0 0 | |
149 | dumpr3 ; da67f1ff | |
150 | ||
151 | move.d 0xda67f19f,r3 | |
152 | move.d 32,r4 | |
153 | asr.b r4,r3 | |
154 | test_move_cc 1 0 0 0 | |
155 | dumpr3 ; da67f1ff | |
156 | ||
157 | move.d 0xda67f19f,r3 | |
158 | move.d 33,r4 | |
159 | asr.b r4,r3 | |
160 | test_move_cc 1 0 0 0 | |
161 | dumpr3 ; da67f1ff | |
162 | ||
163 | move.d 0xda67f19f,r3 | |
164 | move.d 66,r4 | |
165 | asr.b r4,r3 | |
166 | test_move_cc 1 0 0 0 | |
167 | dumpr3 ; da67f1e7 | |
168 | ||
169 | moveq -1,r3 | |
170 | moveq 0,r4 | |
171 | asr.b r4,r3 | |
172 | test_move_cc 1 0 0 0 | |
173 | dumpr3 ; ffffffff | |
174 | ||
175 | moveq -1,r3 | |
176 | moveq 1,r4 | |
177 | asr.b r4,r3 | |
178 | test_move_cc 1 0 0 0 | |
179 | dumpr3 ; ffffffff | |
180 | ||
181 | moveq 2,r3 | |
182 | moveq 1,r4 | |
183 | asr.b r4,r3 | |
184 | test_move_cc 0 0 0 0 | |
185 | dumpr3 ; 1 | |
186 | ||
187 | moveq -1,r3 | |
188 | moveq 31,r4 | |
189 | asr.b r4,r3 | |
190 | test_move_cc 1 0 0 0 | |
191 | dumpr3 ; ffffffff | |
192 | ||
193 | moveq -1,r3 | |
194 | moveq 15,r4 | |
195 | asr.b r4,r3 | |
196 | test_move_cc 1 0 0 0 | |
197 | dumpr3 ; ffffffff | |
198 | ||
199 | moveq -1,r3 | |
200 | moveq 7,r4 | |
201 | asr.b r4,r3 | |
202 | test_move_cc 1 0 0 0 | |
203 | dumpr3 ; ffffffff | |
204 | ||
205 | move.d 0x5a67f19f,r3 | |
206 | moveq 12,r4 | |
207 | asr.b r4,r3 | |
208 | test_move_cc 0 0 0 0 | |
209 | dumpr3 ; 5a67f1ff | |
210 | ||
211 | move.d 0x5a67f19f,r3 | |
212 | moveq 4,r4 | |
213 | asr.b r4,r3 | |
214 | test_move_cc 0 0 0 0 | |
215 | dumpr3 ; 5a67f1f9 | |
216 | ||
217 | move.d 0x5a67f19f,r3 | |
218 | asrq 31,r3 | |
219 | test_move_cc 0 1 0 0 | |
220 | dumpr3 ; 0 | |
221 | ||
222 | move.d 0x5a67419f,r3 | |
223 | moveq 16,r4 | |
224 | asr.w r4,r3 | |
225 | test_move_cc 0 1 0 0 | |
226 | dumpr3 ; 5a670000 | |
227 | ||
228 | quit |