1# frv testcase for ftno 2# mach: all 3 4 .include "testutils.inc" 5 6 start 7 8 .global ftnev 9ftnev: 10 and_spr_immed -4081,tbr ; clear tbr.tt 11 set_gr_spr tbr,gr7 12 inc_gr_immed 2112,gr7 ; address of exception handler 13 set_mem_limmed 0x0038,0x2000,gr7 ; bctrlr 0,0 14 15 set_spr_immed 128,lcr 16 set_spr_addr bad,lr 17 set_gr_immed 0,gr7 18 set_gr_immed 4,gr8 19 20 set_fcc 0x0 0 21 ftno ; should branch to tbr + (128 + 4)*16 22 set_fcc 0x1 0 23 ftno ; should branch to tbr + (128 + 4)*16 24 set_fcc 0x2 0 25 ftno ; should branch to tbr + (128 + 4)*16 26 set_fcc 0x3 0 27 ftno ; should branch to tbr + (128 + 4)*16 28 set_fcc 0x4 0 29 ftno ; should branch to tbr + (128 + 4)*16 30 set_fcc 0x5 0 31 ftno ; should branch to tbr + (128 + 4)*16 32 set_fcc 0x6 0 33 ftno ; should branch to tbr + (128 + 4)*16 34 set_fcc 0x7 0 35 ftno ; should branch to tbr + (128 + 4)*16 36 set_fcc 0x8 0 37 ftno ; should branch to tbr + (128 + 4)*16 38 set_fcc 0x9 0 39 ftno ; should branch to tbr + (128 + 4)*16 40 set_fcc 0xa 0 41 ftno ; should branch to tbr + (128 + 4)*16 42 set_fcc 0xb 0 43 ftno ; should branch to tbr + (128 + 4)*16 44 set_fcc 0xc 0 45 ftno ; should branch to tbr + (128 + 4)*16 46 set_fcc 0xd 0 47 ftno ; should branch to tbr + (128 + 4)*16 48 set_fcc 0xe 0 49 ftno ; should branch to tbr + (128 + 4)*16 50 set_fcc 0xf 0 51 ftno ; should branch to tbr + (128 + 4)*16 52 pass 53bad: 54 fail 55