aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/bfin/random_0024.S
blob: dab88802a5afa1cc1d0fdf9a17d8275383d01b1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
# mach: bfin
#include "test.h"
.include "testutils.inc"

	start

	dmm32 ASTAT, (0x3ce00800 | _VS | _AV1S | _AV0S | _AQ | _AZ);
	imm32 R2, 0x00000000;
	imm32 R4, 0x00000000;
	imm32 R7, 0x00000000;
	R2 = ASHIFT R7 BY R4.L (S);
	checkreg ASTAT, (0x3ce00800 | _VS | _AV1S | _AV0S | _AQ | _AZ);
	checkreg R2, 0x00000000;
	checkreg R4, 0x00000000;
	checkreg R7, 0x00000000;

	dmm32 ASTAT, (0x7c104680 | _VS | _AV1S | _AV0S | _AC1 | _AC0 | _AC0_COPY | _AZ);
	imm32 R7, 0x00000000;
	R7 = R7 << 0xe (S);
	checkreg R7, 0x00000000;
	checkreg ASTAT, (0x7c104680 | _VS | _AV1S | _AV0S | _AC1 | _AC0 | _AC0_COPY | _AZ);

	dmm32 ASTAT, (0x10d08690 | _VS | _AV1S | _AV0S | _AC1 | _AC0 | _CC | _AC0_COPY | _AN);
	imm32 R2, 0x0000ffff;
	imm32 R5, 0x00000000;
	R2 = R5 << 0x1a (S);
	checkreg R2, 0x00000000;
	checkreg ASTAT, (0x10d08690 | _VS | _AV1S | _AV0S | _AC1 | _AC0 | _CC | _AC0_COPY | _AZ);

	dmm32 ASTAT, (0x30f08e90 | _VS | _AV1S | _AV0S | _AC1 | _AC0 | _CC | _AC0_COPY | _AN);
	imm32 R6, 0x00000000;
	R6 = ASHIFT R6 BY R6.L (S);
	checkreg ASTAT, (0x30f08e90 | _VS | _AV1S | _AV0S | _AC1 | _AC0 | _CC | _AC0_COPY | _AZ);
	checkreg R6, 0x00000000;

	dmm32 ASTAT, (0x4060c800 | _VS | _AV0S | _AC1 | _CC | _AZ);
	imm32 R5, 0x00000000;
	imm32 R7, 0x00000000;
	R5 = R7 << 0x15 (S);
	checkreg ASTAT, (0x4060c800 | _VS | _AV0S | _AC1 | _CC | _AZ);
	checkreg R5, 0x00000000;
	checkreg R7, 0x00000000;

	dmm32 ASTAT, (0x78604a10 | _VS | _AN);
	imm32 R1, 0x00000000;
	imm32 R4, 0xe1a88000;
	R4 = R1 << 0xb (S);
	checkreg R4, 0x00000000;
	checkreg ASTAT, (0x78604a10 | _VS | _AZ);

	dmm32 ASTAT, (0x64304800 | _VS | _AV1S | _AV0S | _AC0_COPY);
	imm32 R2, 0x00000000;
	imm32 R7, 0x00000000;
	R7 = R2 << 0xa (S);
	checkreg ASTAT, (0x64304800 | _VS | _AV1S | _AV0S | _AC0_COPY | _AZ);
	checkreg R2, 0x00000000;
	checkreg R7, 0x00000000;

	dmm32 ASTAT, (0x68f0c280 | _VS | _AC1 | _AC0_COPY | _AN);
	imm32 R2, 0x00000000;
	imm32 R5, 0x0000f74a;
	R5 = R2 << 0x10 (S);
	checkreg R5, 0x00000000;
	checkreg ASTAT, (0x68f0c280 | _VS | _AC1 | _AC0_COPY | _AZ);

	dmm32 ASTAT, (0x54200c80 | _VS | _AV1S | _AV0S | _AQ);
	imm32 R1, 0x00000000;
	imm32 R2, 0x00000000;
	R2 = R1 << 0xa (S);
	checkreg ASTAT, (0x54200c80 | _VS | _AV1S | _AV0S | _AQ | _AZ);
	checkreg R1, 0x00000000;
	checkreg R2, 0x00000000;

	dmm32 ASTAT, (0x20300a80 | _VS | _AV1S | _CC | _AZ);
	imm32 R2, 0x00000000;
	imm32 R7, 0x00000000;
	R7 = R2 << 0x8 (S);
	checkreg ASTAT, (0x20300a80 | _VS | _AV1S | _CC | _AZ);
	checkreg R2, 0x00000000;
	checkreg R7, 0x00000000;

	dmm32 ASTAT, (0x14408e10 | _VS | _AV0S | _AQ | _CC | _AZ);
	imm32 R4, 0x0000007f;
	imm32 R6, 0x00000000;
	R4 = R6 << 0x3 (S);
	checkreg R4, 0x00000000;
	checkreg ASTAT, (0x14408e10 | _VS | _AV0S | _AQ | _CC | _AZ);

	dmm32 ASTAT, (0x2850c490 | _VS | _AV1S | _AV0S | _AZ);
	imm32 R5, 0x00000000;
	imm32 R7, 0xf67f0000;
	R7 = ASHIFT R5 BY R7.L (S);
	checkreg R7, 0x00000000;
	checkreg ASTAT, (0x2850c490 | _VS | _AV1S | _AV0S | _AZ);

	dmm32 ASTAT, (0x24a00400 | _VS | _AV1S | _AC0 | _AC0_COPY | _AN);
	imm32 R4, 0x00001e68;
	imm32 R6, 0x00000000;
	R4 = R6 << 0x8 (S);
	checkreg R4, 0x00000000;
	checkreg ASTAT, (0x24a00400 | _VS | _AV1S | _AC0 | _AC0_COPY | _AZ);

	dmm32 ASTAT, (0x34608e00 | _VS | _V | _AV1S | _AV0S | _AC1 | _AQ | _V_COPY | _AN);
	imm32 R1, 0x00000000;
	imm32 R5, 0x272beb60;
	R5 = R1 << 0xa (S);
	checkreg R5, 0x00000000;
	checkreg ASTAT, (0x34608e00 | _VS | _AV1S | _AV0S | _AC1 | _AQ | _AZ);

	dmm32 ASTAT, (0x20800c90 | _VS | _AV1S | _AV0S | _AC1 | _AC0 | _AC0_COPY | _AN);
	imm32 R3, 0x532993ba;
	imm32 R5, 0x00000000;
	R3 = R5 << 0x9 (S);
	checkreg R3, 0x00000000;
	checkreg ASTAT, (0x20800c90 | _VS | _AV1S | _AV0S | _AC1 | _AC0 | _AC0_COPY | _AZ);

	dmm32 ASTAT, (0x5430c090 | _VS | _V | _AV0S | _AC0 | _AQ | _V_COPY | _AC0_COPY);
	imm32 R1, 0xb1510802;
	imm32 R6, 0x00000000;
	R1 = R6 << 0x1e (S);
	checkreg R1, 0x00000000;
	checkreg ASTAT, (0x5430c090 | _VS | _AV0S | _AC0 | _AQ | _AC0_COPY | _AZ);

	dmm32 ASTAT, (0x5cf04c90 | _VS | _AV1S | _AC1 | _AQ | _AC0_COPY);
	dmm32 A1.w, 0xf9bc55b7;
	dmm32 A1.x, 0x0000002a;
	imm32 R0, 0x002d0024;
	imm32 R1, 0x16970042;
	A1 += R0.L * R1.L;
	checkreg A1.w, 0xf9bc6847;
	checkreg A1.x, 0x0000002a;
	checkreg ASTAT, (0x5cf04c90 | _VS | _AV1S | _AC1 | _AQ | _AC0_COPY);

	dmm32 ASTAT, (0x7c804090 | _VS | _AV0S | _AC1 | _AC0 | _CC | _AC0_COPY | _AZ);
	imm32 R5, 0x00000000;
	imm32 R7, 0xfe773828;
	R7 = R5 << 0x19 (S);
	checkreg R7, 0x00000000;
	checkreg ASTAT, (0x7c804090 | _VS | _AV0S | _AC1 | _AC0 | _CC | _AC0_COPY | _AZ);

	dmm32 ASTAT, (0x30f04e90 | _VS | _AV0S | _AC0 | _AQ);
	imm32 R3, 0x00000000;
	imm32 R7, 0x00000372;
	R7 = R3 << 0x6 (S);
	checkreg R7, 0x00000000;
	checkreg ASTAT, (0x30f04e90 | _VS | _AV0S | _AC0 | _AQ | _AZ);

	dmm32 ASTAT, (0x04708210 | _VS | _AV1S | _AC0 | _AQ | _AN);
	imm32 R5, 0x00000000;
	imm32 R7, 0x79b3d220;
	R7 = R5 << 0x13 (S);
	checkreg R7, 0x00000000;
	checkreg ASTAT, (0x04708210 | _VS | _AV1S | _AC0 | _AQ | _AZ);

	dmm32 ASTAT, (0x24e08680 | _VS | _AV0S | _AC1 | _CC | _AZ);
	imm32 R0, 0x00000000;
	imm32 R6, 0x00000000;
	imm32 R7, 0xa820afc0;
	R6 = ASHIFT R0 BY R7.L (S);
	checkreg ASTAT, (0x24e08680 | _VS | _AV0S | _AC1 | _CC | _AZ);
	checkreg R0, 0x00000000;
	checkreg R6, 0x00000000;
	checkreg R7, 0xa820afc0;

	dmm32 ASTAT, (0x0ca0c090 | _VS | _AQ | _AZ);
	imm32 R6, 0x00000000;
	imm32 R7, 0x0000001f;
	R7 = R6 << 0x14 (S);
	checkreg R7, 0x00000000;
	checkreg ASTAT, (0x0ca0c090 | _VS | _AQ | _AZ);

	dmm32 ASTAT, (0x20204680 | _VS | _AV1S | _AV0S | _AC0 | _AC0_COPY);
	imm32 R6, 0x00000000;
	R6 = R6 << 0x15 (S);
	checkreg ASTAT, (0x20204680 | _VS | _AV1S | _AV0S | _AC0 | _AC0_COPY | _AZ);
	checkreg R6, 0x00000000;

	dmm32 ASTAT, (0x14f08c00 | _VS | _AC1 | _AC0 | _AQ | _AC0_COPY | _AZ);
	imm32 R2, 0x00000000;
	imm32 R6, 0x00007fff;
	R6 = R2 << 0x1b (S);
	checkreg R6, 0x00000000;
	checkreg ASTAT, (0x14f08c00 | _VS | _AC1 | _AC0 | _AQ | _AC0_COPY | _AZ);

	dmm32 ASTAT, (0x50b08c00 | _VS | _AC1 | _AQ | _CC | _AN);
	imm32 R1, 0x00000000;
	imm32 R4, 0x0000fffd;
	R4 = R1 << 0x9 (S);
	checkreg R4, 0x00000000;
	checkreg ASTAT, (0x50b08c00 | _VS | _AC1 | _AQ | _CC | _AZ);

	dmm32 ASTAT, (0x1cb04200 | _VS | _AV0S | _AC1 | _CC);
	imm32 R0, 0x00000000;
	imm32 R2, 0xdeab0000;
	R2 = R0 << 0x1e (S);
	checkreg R2, 0x00000000;
	checkreg ASTAT, (0x1cb04200 | _VS | _AV0S | _AC1 | _CC | _AZ);

	dmm32 ASTAT, (0x54c0ca00 | _VS | _AV1S | _AV0S | _AC1);
	imm32 R6, 0x00000000;
	imm32 R7, 0x9ec9c597;
	R7 = R6 << 0x8 (S);
	checkreg R7, 0x00000000;
	checkreg ASTAT, (0x54c0ca00 | _VS | _AV1S | _AV0S | _AC1 | _AZ);

	dmm32 ASTAT, (0x18804400 | _VS | _AV0S | _AC1 | _AC0 | _AC0_COPY | _AN);
	imm32 R7, 0x00000000;
	R7 = R7 << 0x1d (S);
	checkreg ASTAT, (0x18804400 | _VS | _AV0S | _AC1 | _AC0 | _AC0_COPY | _AZ);
	checkreg R7, 0x00000000;

	dmm32 ASTAT, (0x40c08e90 | _VS | _AV1S | _AV0S | _CC);
	imm32 R2, 0x00000000;
	imm32 R5, 0x80000000;
	imm32 R7, 0x00000000;
	R5 = ASHIFT R2 BY R7.L (S);
	checkreg R5, 0x00000000;
	checkreg ASTAT, (0x40c08e90 | _VS | _AV1S | _AV0S | _CC | _AZ);

	dmm32 ASTAT, (0x70b04290 | _VS | _AV1S | _AV0S | _AQ | _AZ);
	imm32 R5, 0x8000c2d0;
	imm32 R6, 0x00000000;
	R5 = R6 << 0x2 (S);
	checkreg R5, 0x00000000;
	checkreg ASTAT, (0x70b04290 | _VS | _AV1S | _AV0S | _AQ | _AZ);

	dmm32 ASTAT, (0x7cf04480 | _VS | _AV0S | _AC0 | _AC0_COPY | _AZ);
	imm32 R3, 0x00000000;
	imm32 R7, 0x00000000;
	R7 = ASHIFT R3 BY R7.L (S);
	checkreg ASTAT, (0x7cf04480 | _VS | _AV0S | _AC0 | _AC0_COPY | _AZ);
	checkreg R3, 0x00000000;
	checkreg R7, 0x00000000;

	dmm32 ASTAT, (0x78d0c290 | _VS | _AV0S | _AC1 | _AC0 | _AQ | _CC | _AC0_COPY | _AZ);
	imm32 R1, 0x7c98345a;
	imm32 R4, 0x00000000;
	R1 = ASHIFT R4 BY R1.L (S);
	checkreg R1, 0x00000000;
	checkreg ASTAT, (0x78d0c290 | _VS | _AV0S | _AC1 | _AC0 | _AQ | _CC | _AC0_COPY | _AZ);

	dmm32 ASTAT, (0x58400e80 | _VS | _V | _AV0S | _AQ | _CC | _V_COPY);
	imm32 R2, 0x00000000;
	imm32 R4, 0x7fffffff;
	R4 = R2 << 0x8 (S);
	checkreg R4, 0x00000000;
	checkreg ASTAT, (0x58400e80 | _VS | _AV0S | _AQ | _CC | _AZ);

	dmm32 ASTAT, (0x4c804080 | _VS | _V | _AV1S | _AV0S | _AV0 | _V_COPY);
	imm32 R3, 0x00000000;
	imm32 R7, 0x3d196b66;
	R7 = ASHIFT R3 BY R3.L (S);
	checkreg R7, 0x00000000;
	checkreg ASTAT, (0x4c804080 | _VS | _AV1S | _AV0S | _AV0 | _AZ);

	dmm32 ASTAT, (0x44304a10 | _VS | _AV0S | _AQ | _AZ);
	imm32 R4, 0x00000000;
	imm32 R6, 0x00000000;
	R6 = R4 << 0x11 (S);
	checkreg ASTAT, (0x44304a10 | _VS | _AV0S | _AQ | _AZ);
	checkreg R4, 0x00000000;
	checkreg R6, 0x00000000;

	pass