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.
56 lines
877 B
ArmAsm
56 lines
877 B
ArmAsm
# mach: bfin
|
|
|
|
.include "testutils.inc"
|
|
start
|
|
|
|
|
|
R0.L = 0.5;
|
|
R0.H = 0.5;
|
|
R1.L = 0.5;
|
|
R1.H = 0.5;
|
|
|
|
R2 = R0 +|+ R1, R3 = R0 -|- R1 (S , ASR);
|
|
_DBGCMPLX R2;
|
|
_DBGCMPLX R3;
|
|
|
|
DBGA ( R2.L , 0.5 );
|
|
DBGA ( R2.H , 0.5 );
|
|
DBGA ( R3.L , 0 );
|
|
DBGA ( R3.H , 0 );
|
|
|
|
R1.L = 0.125;
|
|
R1.H = 0.125;
|
|
|
|
R2 = R0 +|+ R1, R3 = R0 -|- R1 (S , ASR);
|
|
_DBGCMPLX R2;
|
|
_DBGCMPLX R3;
|
|
DBGA ( R2.L , 0.3125 );
|
|
DBGA ( R2.H , 0.3125 );
|
|
DBGA ( R3.L , 0.1875 );
|
|
DBGA ( R3.H , 0.1875 );
|
|
|
|
R0 = R2 +|+ R3, R1 = R2 -|- R3 (S , ASR);
|
|
_DBGCMPLX R0;
|
|
_DBGCMPLX R1;
|
|
DBGA ( R0.L , 0.25 );
|
|
DBGA ( R0.H , 0.25 );
|
|
DBGA ( R1.L , 0.0625 );
|
|
DBGA ( R1.H , 0.0625 );
|
|
|
|
R0 = 1;
|
|
R0 <<= 15;
|
|
R1 = R0 << 16;
|
|
r0=r0 | r1;
|
|
R1 = R0;
|
|
|
|
R2 = R0 +|+ R1, R3 = R0 -|- R1 (S , ASR);
|
|
|
|
_DBGCMPLX R2;
|
|
_DBGCMPLX R3;
|
|
DBGA ( R0.L , 0x8000 );
|
|
DBGA ( R0.H , 0x8000 );
|
|
DBGA ( R1.L , 0x8000 );
|
|
DBGA ( R1.H , 0x8000 );
|
|
|
|
pass
|