1 # FRV testcase for break
4 .include "testutils.inc"
10 ; Can't test break anymore in the user environment because it is the
11 ; debugger's breakpoint insn. Just pass this test for now.
19 and_gr_immed -4081,gr7 ; clear tbr.tt
20 inc_gr_immed 0xff0,gr7 ; break handler
24 test_spr_bits 0x4,2,0x1,psr ; psr.s is set
25 test_spr_bits 0x1,0,0x0,psr ; psr.et is clear
29 or_spr_immed 0x00000001,psr ; turn on psr.et
30 and_spr_immed 0xfffffffb,psr ; turn off psr.s
31 test_spr_bits 0x4,2,0x0,psr ; psr.s is clear
32 test_spr_bits 0x1,0,0x1,psr ; psr.et is set
36 test_spr_bits 0x4,2,0x0,psr ; psr.s is clear
37 test_spr_bits 0x1,0,0x1,psr ; psr.et is set
40 ; check interrupt for second break
41 ok0: test_spr_addr ret1,bpcsr
42 test_spr_bits 0x1000,12,0x0,bpsr ; bpsr.bs is clear
43 test_spr_bits 0x0001,0,0x1,bpsr ; bpsr.et is set
44 test_spr_bits 0x4,2,0x1,psr ; psr.s is set
45 test_spr_bits 0x1,0,0x0,psr ; psr.et is clear
49 ; check interrupt for first break
50 ok1: test_spr_addr ret,bpcsr
51 test_spr_bits 0x1000,12,0x1,bpsr ; bpsr.bs is set
52 test_spr_bits 0x0001,0,0x0,bpsr ; bpsr.et is clear
53 test_spr_bits 0x4,2,0x1,psr ; psr.s is set
54 test_spr_bits 0x1,0,0x0,psr ; psr.et is clear