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
|
//Original:/proj/frio/dv/testcases/core/c_dsp32alu_saa/c_dsp32alu_saa.dsp
// Spec Reference: dsp32alu saa
# mach: bfin
.include "testutils.inc"
start
A1 = 0;
A0 = 0;
imm32 r0, 0x15678911;
imm32 r1, 0x2789ab1d;
imm32 r2, 0x34445515;
imm32 r3, 0x46667717;
imm32 r4, 0x5567891b;
imm32 r5, 0x6789ab1d;
imm32 r6, 0x74445515;
imm32 r7, 0x86667777;
A0 = 0;
A1 = 0;
SAA ( R1:0 , R3:2 );
R4 = A0.w;
R5 = A1.w;
CHECKREG r4, 0x00340004;
CHECKREG r5, 0x001F0023;
SAA ( R3:2 , R1:0 );
R6 = A0.w;
R7 = A1.w;
CHECKREG r6, 0x00680008;
CHECKREG r7, 0x003E0046;
imm32 r0, 0x1567892b;
imm32 r1, 0x2789ab2d;
imm32 r2, 0x34445525;
imm32 r3, 0x46667727;
imm32 r4, 0x00340004;
imm32 r5, 0x001F0023;
imm32 r6, 0x00680008;
imm32 r7, 0x003E0046;
SAA ( R1:0 , R3:2 );
R0 = A0.w;
R1 = A1.w;
CHECKREG r0, 0x009C000E;
CHECKREG r1, 0x005D0069;
SAA ( R3:2 , R1:0 );
R2 = A0.w;
R3 = A1.w;
CHECKREG r2, 0x00F10025;
CHECKREG r3, 0x009100C1;
imm32 r0, 0x496789ab;
imm32 r1, 0x6489abcd;
imm32 r2, 0x4b445555;
imm32 r3, 0x6c647777;
imm32 r4, 0x8d889999;
imm32 r5, 0xaeaa4bbb;
imm32 r6, 0xcfccd44d;
imm32 r7, 0xe1eefff4;
SAA ( R3:2 , R1:0 ) (R);
R0 = A0.w;
R1 = A1.w;
CHECKREG r0, 0x0125007B;
CHECKREG r1, 0x009900E6;
SAA ( R1:0 , R3:2 ) (R);
R6 = A0.w;
R7 = A1.w;
CHECKREG r6, 0x019C00EA;
CHECKREG r7, 0x0105011B;
pass
|