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

57 lines
779 B
ArmAsm

//Original:/proj/frio/dv/testcases/core/c_progctrl_jump_pr/c_progctrl_jump_pr.dsp
// Spec Reference: progctrl jump(p)
# mach: bfin
.include "testutils.inc"
start
INIT_R_REGS 0;
ASTAT = r0;
loadsym p1, LAB1;
loadsym p2, LAB2;
loadsym fp, LAB3;
loadsym p4, LAB4;
loadsym p5, LAB5;
JUMP ( P1 );
STOP:
JUMP.S END;
LAB1:
R1 = 0x1111 (X);
JUMP ( P5 );
R6 = 0x6666 (X);
LAB2:
R2 = 0x2222 (X);
JUMP.S STOP;
LAB3:
R3 = 0x3333 (X);
JUMP ( P2 );
R7 = 0x7777 (X);
LAB4:
R4 = 0x4444 (X);
JUMP ( FP );
LAB5:
R5 = 0x5555 (X);
JUMP ( P4 );
END:
CHECKREG r0, 0x00000000;
CHECKREG r1, 0x00001111;
CHECKREG r2, 0x00002222;
CHECKREG r3, 0x00003333;
CHECKREG r4, 0x00004444;
CHECKREG r5, 0x00005555;
CHECKREG r6, 0x00000000;
CHECKREG r7, 0x00000000;
pass