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

41 lines
572 B
ArmAsm

# Blackfin testcase for DISALGNEXCPT
# mach: bfin
.include "testutils.inc"
start
loadsym R0, foo;
R0 += 1;
I1 = R0;
M0 = 4 (z);
//dag0misalgn, dag1misalgn EXCAUSE value
R7 = 0x24 (z);
// Get just the EXCAUSE field before
R5=SEQSTAT;
R5 = R5 << 26;
R5 = R5 >> 26;
DISALGNEXCPT || R2 = [I1++M0]; // i1 = 0xff9004aa (misaligned)
// Get just the EXCAUSE field after
R6=SEQSTAT;
R6 = R6 << 26;
R6 = R6 >> 26;
// EXCAUSE of 0x24 == misaligned data memory access
CC = R6 == R7;
if CC jump _fail;
_pass:
pass;
_fail:
fail;
.data
foo:
.space 0x10