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.
41 lines
572 B
ArmAsm
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
|