1 # FRV testcase for icpl GRi,GRj,lock
4 .include "testutils.inc"
9 ; keep this at least 64 bytes away from doit2
11 doit1: add gr11,gr12,gr11
15 or_spr_immed 0x80000000,hsr0 ; insn cache: enable
16 and_spr_immed 0xbfffffff,hsr0 ; data cache: disable
21 set_gr_addr doit1,gr10
22 icpl gr10,gr0,0 ; preload insns at doit1
23 set_mem_immed 0x9600b00d,gr10 ; change to add gr11,gr13,gr11
25 set_gr_addr doit2,gr10
26 set_mem_immed 0x9600b00d,gr10 ; change to add gr11,gr13,gr11
30 ok1: test_gr_immed 1,gr11 ; used preloaded add of 1
34 ok2: test_gr_immed 3,gr11 ; used changed add of 2
38 doit2: add gr11,gr12,gr11