1 # frv testcase for movgs $GRj,iacc0[hl]
4 .include "../testutils.inc"
10 set_gr_limmed 0xdead,0xbeef,gr8
11 and_spr_immed 0,iacc0h
13 test_gr_limmed 0xdead,0xbeef,gr8
14 test_spr_limmed 0xdead,0xbeef,iacc0h
16 ; try alternate names for iacc0h
18 movgs gr8,spr[280] ; iacc0h is spr number 280
19 test_gr_limmed 0xdead,0xbeef,gr8
20 test_spr_limmed 0xdead,0xbeef,spr[280]
23 set_gr_limmed 0xdead,0xbeef,gr8
24 and_spr_immed 0,iacc0l
26 test_gr_limmed 0xdead,0xbeef,gr8
27 test_spr_limmed 0xdead,0xbeef,iacc0l
29 ; try alternate names for iacc0l
31 movgs gr8,spr[281] ; iacc0l is spr number 281
32 test_gr_limmed 0xdead,0xbeef,gr8
33 test_spr_limmed 0xdead,0xbeef,spr[281]
36 ; try crossing between iacc0l and spr[281]
38 and_spr_immed 0,iacc0l
39 movgs gr8,spr[281] ; iacc0l is spr number 281
40 test_gr_limmed 0xdead,0xbeef,gr8
41 test_spr_limmed 0xdead,0xbeef,iacc0l
45 and_spr_immed 0,iacc0h
46 movgs gr8,iacc0h ; iacc0h is spr number 280
47 test_gr_limmed 0xdead,0xbeef,gr8
48 test_spr_limmed 0xdead,0xbeef,spr[280]