mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
1368b914e9
Now that all port tests live under testsuite/sim/*/, and none live in testsuite/ directly, flatten the structure by moving all of the dirs under testsuite/sim/ to testsuite/ directly. We need to stop passing --tool to dejagnu so that it searches all dirs and not just ones that start with "sim". Since we have no other dirs in this tree, and no plans to add any, should be fine.
52 lines
854 B
ArmAsm
52 lines
854 B
ArmAsm
# 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
|