binutils-gdb/sim/testsuite/bfin/7641.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

39 lines
674 B
ArmAsm

# Blackfin testcase for playing with TESTSET
# mach: bfin
.include "testutils.inc"
start
loadsym P0, element1
loadsym P1, element2
R0 = B [P0]; // R0 should get 00
R1 = B [P1]; // R1 should get 02
TESTSET(P0); // should set CC and MSB of memory byte
R0 = CC;
TESTSET(P1); // should clear CC and not change MSB of memory
R1 = CC;
R2 = B [P0]; // R2 should get 80
R3 = B [P1]; // R3 should get 02
dbga(R0.l,0x0001);
dbga(R0.h,0x0000);
dbga(R1.l,0x0000);
dbga(R1.h,0x0000);
dbga(R2.l,0x0080);
dbga(R2.h,0x0000);
dbga(R3.l,0x0082);
dbga(R3.h,0x0000);
pass
.data
.align 4;
element1: .long 0x0
element2: .long 0x2
element3: .long 0x4