1 # FRV testcase for icul $GRi
4 .include "testutils.inc"
10 or_spr_immed 0xc8000000,hsr0 ; caches enabled -- copy-back mode
12 ; preload and lock all the lines in set 0 of the insn cache
13 set_gr_immed 0x70000,gr10
17 inc_gr_immed 0x1000,gr10
21 inc_gr_immed 0x1000,gr10
25 inc_gr_immed 0x1000,gr10
29 ; execute the pre-loaded insn
30 set_gr_immed 0x70000,gr10
31 calll @(gr10,gr0) ; should come right back
32 inc_gr_immed 0x1000,gr10
33 calll @(gr10,gr0) ; should come right back
34 inc_gr_immed 0x1000,gr10
35 calll @(gr10,gr0) ; should come right back
36 inc_gr_immed 0x1000,gr10
37 calll @(gr10,gr0) ; should come right back
39 ; Now execute another insn which would have gone into set 0.
40 inc_gr_immed 0x1000,gr10
43 calll @(gr10,gr0) ; should come right back
45 ; Now unlock one of the lines and do it again
46 set_gr_immed 0x71000,gr10
48 calll @(gr10,gr0) ; should come right back
50 inc_gr_immed 0x3000,gr10
51 calll @(gr10,gr0) ; should come right back