1# Make sure the sim doesn't segfault when doing things that don't 2# make much sense in a non-operating environment 3# mach: bfin 4 5 .include "testutils.inc" 6 7 start 8 9 csync; 10 ssync; 11 idle; 12 raise 12; 13 cli r0; 14 sti r0; 15 16 loadsym r0, .Lreti; 17 reti = r0; 18 rti; 19 fail; 20.Lreti: 21 22 loadsym r0, .Lretx; 23 retx = r0; 24 rtx; 25 fail; 26.Lretx: 27 28 loadsym r0, .Lretn; 29 retn = r0; 30 rtn; 31 fail; 32.Lretn: 33 34 usp = p0; 35 p0 = usp; 36 37 pass; 38