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
|
// shifter test program.
// Test instructions ONES
# mach: bfin
.include "testutils.inc"
start
R7 = 0;
ASTAT = R7;
R0.L = 0x1;
R0.H = 0x0;
R7.L = ONES R0;
DBGA ( R7.L , 0x0001 );
DBGA ( R7.H , 0x0000 );
CC = AZ; R7 = CC; DBGA ( R7.L , 0x0 );
CC = AN; R7 = CC; DBGA ( R7.L , 0x0 );
CC = AV0; R7 = CC; DBGA ( R7.L , 0x0 );
CC = AV1; R7 = CC; DBGA ( R7.L , 0x0 );
CC = AC0; R7 = CC; DBGA ( R7.L , 0x0 );
R0.L = 0x0000;
R0.H = 0x8000;
R7.L = ONES R0;
DBGA ( R7.L , 0x0001 );
DBGA ( R7.H , 0x0000 );
R0.L = 0x0001;
R0.H = 0x8000;
R7.L = ONES R0;
DBGA ( R7.L , 0x0002 );
DBGA ( R7.H , 0x0000 );
R0.L = 0xffff;
R0.H = 0xffff;
R7.L = ONES R0;
DBGA ( R7.L , 0x0020 );
DBGA ( R7.H , 0x0000 );
R0.L = 0x0000;
R0.H = 0x0000;
R7.L = ONES R0;
DBGA ( R7.L , 0x0000 );
DBGA ( R7.H , 0x0000 );
pass
|