mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-12 12:16:04 +08:00
38 lines
412 B
ArmAsm
38 lines
412 B
ArmAsm
|
# Make sure the sim doesn't segfault when doing things that don't
|
||
|
# make much sense in a non-operating environment
|
||
|
# mach: bfin
|
||
|
|
||
|
.include "testutils.inc"
|
||
|
|
||
|
start
|
||
|
|
||
|
csync;
|
||
|
ssync;
|
||
|
idle;
|
||
|
raise 12;
|
||
|
cli r0;
|
||
|
sti r0;
|
||
|
|
||
|
loadsym r0, .Lreti;
|
||
|
reti = r0;
|
||
|
rti;
|
||
|
fail;
|
||
|
.Lreti:
|
||
|
|
||
|
loadsym r0, .Lretx;
|
||
|
retx = r0;
|
||
|
rtx;
|
||
|
fail;
|
||
|
.Lretx:
|
||
|
|
||
|
loadsym r0, .Lretn;
|
||
|
retn = r0;
|
||
|
rtn;
|
||
|
fail;
|
||
|
.Lretn:
|
||
|
|
||
|
usp = p0;
|
||
|
p0 = usp;
|
||
|
|
||
|
pass;
|