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
|
// Test SAA
# mach: bfin
.include "testutils.inc"
start
I0 = 0;
I1 = 0;
imm32 R0, 0x04030201;
imm32 R2, 0x04030201;
A1 = A0 = 0;
saa(r1:0,r3:2);
R0 = A0.w;
R1 = A1.w;
CHECKREG R0, 0;
CHECKREG R1, 0;
imm32 R0, 0x00000201;
imm32 R2, 0x00020102;
A1 = A0 = 0;
saa(r1:0,r3:2);
saa(r1:0,r3:2);
saa(r1:0,r3:2);
R0 = A0.w;
R1 = A1.w;
CHECKREG R0, 0x00030003;
CHECKREG R1, 0x00000006;
imm32 R0, 0x000300ff;
imm32 R2, 0x0001ff00;
A1 = A0 = 0;
saa(r1:0,r3:2);
saa(r1:0,r3:2);
R0 = A0.w;
R1 = A1.w;
CHECKREG R0, 0x1fe01fe;
CHECKREG R1, 0x0000004;
pass
|