1 # frv testcase for cstb $GRk,@($GRi,$GRj)
4 .include "testutils.inc"
10 set_spr_immed 0x1b1b,cccr
12 set_mem_limmed 0xdead,0xbeef,sp
14 set_gr_limmed 0xffff,0xffff,gr8
15 cstb gr8,@(sp,gr7),cc0,1
16 test_mem_limmed 0xffad,0xbeef,sp
19 set_gr_limmed 0xffff,0xffee,gr8
20 cstb gr8,@(sp,gr7),cc0,1
21 test_mem_limmed 0xffad,0xeeef,sp
25 set_gr_limmed 0xffff,0xff00,gr8
26 cstb gr8,@(sp,gr7),cc4,1
28 test_mem_limmed 0xffad,0xee00,sp
30 set_mem_limmed 0xdead,0xbeef,sp
32 set_gr_limmed 0xffff,0xffff,gr8
33 cstb gr8,@(sp,gr7),cc0,0
34 test_mem_limmed 0xdead,0xbeef,sp
37 set_gr_limmed 0xffff,0xffee,gr8
38 cstb gr8,@(sp,gr7),cc0,0
39 test_mem_limmed 0xdead,0xbeef,sp
43 set_gr_limmed 0xffff,0xff00,gr8
44 cstb gr8,@(sp,gr7),cc4,0
46 test_mem_limmed 0xdead,0xbeef,sp
48 set_mem_limmed 0xdead,0xbeef,sp
50 set_gr_limmed 0xffff,0xffff,gr8
51 cstb gr8,@(sp,gr7),cc1,0
52 test_mem_limmed 0xffad,0xbeef,sp
55 set_gr_limmed 0xffff,0xffee,gr8
56 cstb gr8,@(sp,gr7),cc1,0
57 test_mem_limmed 0xffad,0xeeef,sp
61 set_gr_limmed 0xffff,0xff00,gr8
62 cstb gr8,@(sp,gr7),cc5,0
64 test_mem_limmed 0xffad,0xee00,sp
66 set_mem_limmed 0xdead,0xbeef,sp
68 set_gr_limmed 0xffff,0xffff,gr8
69 cstb gr8,@(sp,gr7),cc1,1
70 test_mem_limmed 0xdead,0xbeef,sp
73 set_gr_limmed 0xffff,0xffee,gr8
74 cstb gr8,@(sp,gr7),cc1,1
75 test_mem_limmed 0xdead,0xbeef,sp
79 set_gr_limmed 0xffff,0xff00,gr8
80 cstb gr8,@(sp,gr7),cc5,1
82 test_mem_limmed 0xdead,0xbeef,sp
84 set_mem_limmed 0xdead,0xbeef,sp
86 set_gr_limmed 0xffff,0xffff,gr8
87 cstb gr8,@(sp,gr7),cc2,0
88 test_mem_limmed 0xdead,0xbeef,sp
91 set_gr_limmed 0xffff,0xffee,gr8
92 cstb gr8,@(sp,gr7),cc2,1
93 test_mem_limmed 0xdead,0xbeef,sp
97 set_gr_limmed 0xffff,0xff00,gr8
98 cstb gr8,@(sp,gr7),cc6,0
100 test_mem_limmed 0xdead,0xbeef,sp
102 set_mem_limmed 0xdead,0xbeef,sp
104 set_gr_limmed 0xffff,0xffff,gr8
105 cstb gr8,@(sp,gr7),cc3,1
106 test_mem_limmed 0xdead,0xbeef,sp
109 set_gr_limmed 0xffff,0xffee,gr8
110 cstb gr8,@(sp,gr7),cc3,0
111 test_mem_limmed 0xdead,0xbeef,sp
115 set_gr_limmed 0xffff,0xff00,gr8
116 cstb gr8,@(sp,gr7),cc7,1
118 test_mem_limmed 0xdead,0xbeef,sp