blob: 5a02092a15d61894b3f91b1e087b6aef7506304b (
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
|
# mach: bfin
#include "test.h"
.include "testutils.inc"
start
R0 = 0;
ASTAT = R0;
CC = R0 == R0;
AZ = CC;
_DBG ASTAT;
R0 = ASTAT; CHECKREG R0, (_AC0|_AC0_COPY|_CC|_AZ);
R0 = R0 + R0;
R0 = ASTAT; CHECKREG R0, (_CC);
AN = CC;
R0 = ASTAT; CHECKREG R0, (_CC|_AN);
R0 = - R0;
R0 = ASTAT; CHECKREG R0, (_CC|_AN);
AC0 = CC;
_DBG ASTAT;
R0 = ASTAT; CHECKREG R0, (_AC0|_CC|_AN);
AV0 = CC;
_DBG ASTAT;
R0 = ASTAT; CHECKREG R0, (_AV0|_AC0|_CC|_AN);
AV1 = CC;
_DBG ASTAT;
R0 = ASTAT; CHECKREG R0, (_AV1|_AV0|_AC0|_CC|_AN);
AQ = CC;
_DBG ASTAT;
R0 = ASTAT; CHECKREG R0, (_AV1|_AV0|_AC0|_AQ|_CC|_AN);
CC = R0 < R0;
_DBG ASTAT;
// When AV0 is set, AV1 is unchanged
AQ = CC;
_DBG ASTAT;
R0 = ASTAT; CHECKREG R0, (_AV1|_AV0|_AC0|_AC0_COPY|_AZ);
AV1 = CC;
_DBG ASTAT;
R0 = ASTAT; CHECKREG R0, (_AV0|_AC0|_AC0_COPY|_AZ);
pass
|