diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-01-05 22:09:57 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-01-15 19:18:34 -0500 |
commit | 1368b914e93a3af332f787d3d41c106d11bb90da (patch) | |
tree | 9893ccae5d2d8cbf2ce855e09d6b8f30b56a21bc /sim/testsuite/bfin/e0.s | |
parent | e403a898b5893337baea73bcb001ece74042f351 (diff) | |
download | binutils-1368b914e93a3af332f787d3d41c106d11bb90da.zip binutils-1368b914e93a3af332f787d3d41c106d11bb90da.tar.gz binutils-1368b914e93a3af332f787d3d41c106d11bb90da.tar.bz2 |
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.
Diffstat (limited to 'sim/testsuite/bfin/e0.s')
-rw-r--r-- | sim/testsuite/bfin/e0.s | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/sim/testsuite/bfin/e0.s b/sim/testsuite/bfin/e0.s new file mode 100644 index 0000000..bdcd71b --- /dev/null +++ b/sim/testsuite/bfin/e0.s @@ -0,0 +1,51 @@ +// assert that we can issue a software exception +// and that the expt number is passed correctly through +// SEQSTAT. +# mach: bfin +# sim: --environment operating + + .include "testutils.inc" + + start +.ifndef BFIN_HOST + imm32 p0, 0xFFE02000; /* EVT0 */ + P1 = re (Z); // load a pointer to ihandler interrupt 1 + P1.H = re; + [ P0 + (4*3) ] = P1; + + R0 = -1; /* unmask all interrupts */ + imm32 p1, 0xFFE02104; + [P1] = R0; + + R0 = start_uspace (Z); + R0.H = start_uspace; + RETI = R0; + RTI; +start_uspace: + EXCPT 10; + + DBGA ( R1.L , 0x1238 ); + + dbg_pass; + + // ihandler +re: + R0 = SEQSTAT; + R0 <<= (32-6); + R0 >>= (32-6); + R2 = 0x20; + CC = R0 < R2; + IF !CC JUMP _error; + DBGA ( R0.L , 0xa ); + R1 = 0x1234 (X); + R1 += 1; + R1 += 1; + R1 += 1; + R1 += 1; + RTX; + +_error: + DBGA ( R0.L , EXCPT_PROTVIOL ); + dbg_fail; + +.endif |