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.
40 lines
647 B
ArmAsm
40 lines
647 B
ArmAsm
// test RND setting AZ
|
|
# mach: bfin
|
|
|
|
.include "testutils.inc"
|
|
start
|
|
|
|
|
|
// result is zero with overflow ==> AZ, therefore, is not set
|
|
R0.L = 0x8000;
|
|
R0 = R0.L (X);
|
|
R1.L = R0 (RND);
|
|
CC = AZ; R7 = CC;
|
|
DBGA(R1.L, 0);
|
|
DBGA ( R7.L , 0x1 );
|
|
|
|
// No Overflow, result is zero, AZ is set
|
|
R0 = 1 (X);
|
|
R1.L = r0 (RND);
|
|
CC = AZ; R7 = CC;
|
|
DBGA(R1.L, 0);
|
|
DBGA ( R7.L , 0x1 );
|
|
|
|
// result should be 1
|
|
R0.L = 0x8000;
|
|
R0.H = 0;
|
|
R1.L = R0 (RND);
|
|
CC = AZ; R7 = CC;
|
|
DBGA(R1.L, 1);
|
|
DBGA ( R7.L , 0x0 );
|
|
|
|
// Result should be non-zero
|
|
R0.H = 0x7ff0;
|
|
R0.L = 0x8000;
|
|
R1.L = R0 (RND);
|
|
CC = AZ; R7 = CC;
|
|
DBGA(R1.L, 0x7ff1);
|
|
DBGA ( R7.L , 0x0 );
|
|
|
|
pass
|