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

56 lines
799 B
ArmAsm

//Original:/testcases/seq/se_rets_hazard/se_rets_hazard.dsp
# mach: bfin
.include "testutils.inc"
start
BOOT:
FP = SP; // and frame pointer
INIT_R_REGS 0; // initialize general purpose regs
ASTAT = r0; // reset sequencer registers
// The Main Program
START:
loadsym r1, SUB1;
RETS = r1;
RTS;
MID1:
CHECKREG r6, 0; // shouldn't be BAD
R6.L = 0xBAD2; // In case we come back to MID1
loadsym P1, MID2;
CALL ( P1 );
RTS;
MID2:
loadsym R1, END;
RETS = r1;
[ -- SP ] = I0;
LINK 0;
I0 = FP;
UNLINK;
RTS;
END:
pass // Call Endtest Macro
// Subroutines and Functions
SUB1: // Code goes here
CHECKREG r7, 0; // should be if sub executed
R7.L = 0xBAD; // In case we come back to SUB1
loadsym R2, MID1;
[ -- SP ] = R2;
RETS = [sp++];
RTS;
R6.L = 0xBAD;