binutils-gdb/sim/testsuite/bfin/dsp_neg.S
Mike Frysinger 1368b914e9 sim: testsuite: flatten tree
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.
2021-01-15 19:18:34 -05:00

37 lines
513 B
ArmAsm

// ALU test program.
// Test instructions:
// dreg = -dreg (ns);
// dreg = -dreg (s);
// dspalu32 negate instruction
# mach: bfin
#include "test.h"
.include "testutils.inc"
start
R0 = 0;
ASTAT = R0;
// CHECK MULTI ISSUE
r1=0x5;
loadsym i0, data0;
r2 = -r1 (ns) || r3=[i0++];
checkreg r2, 0xfffffffb;
r3 = astat
checkreg r3, (_AN);
r1.h = 0x8000;
r1.l = 0x0;
r2 = -r1 (s);
checkreg r2, 0x7fffffff;
r3 = astat;
_dbg astat;
checkreg r3, (_VS|_V|_V_COPY);
pass
.data
data0:
.space (0x10);