1 # frv testcase for csthu $GRk,@($GRi,$GRj),$CCi,$cond
4 .include "testutils.inc"
10 set_spr_immed 0x1b1b,cccr
14 set_mem_limmed 0xdead,0xbeef,sp
16 set_gr_limmed 0xffff,0xffff,gr8
17 csthu gr8,@(sp,gr7),cc0,1
18 test_mem_limmed 0xffff,0xbeef,gr21
23 set_gr_limmed 0xdead,0xeeee,gr8
24 csthu gr8,@(sp,gr7),cc0,1
25 test_mem_limmed 0xffff,0xeeee,gr21
30 set_gr_limmed 0xffff,0xdddd,gr8
31 csthu gr8,@(sp,gr7),cc4,1
32 test_mem_limmed 0xffff,0xdddd,gr21
37 set_mem_limmed 0xdead,0xbeef,sp
39 set_gr_limmed 0xffff,0xffff,gr8
40 csthu gr8,@(sp,gr7),cc0,0
41 test_mem_limmed 0xdead,0xbeef,gr21
45 set_gr_limmed 0xffff,0xeeee,gr8
46 csthu gr8,@(sp,gr7),cc0,0
47 test_mem_limmed 0xdead,0xbeef,gr21
53 set_gr_limmed 0xffff,0xdddd,gr8
54 csthu gr8,@(sp,gr7),cc4,0
55 test_mem_limmed 0xdead,0xbeef,gr21
60 set_mem_limmed 0xdead,0xbeef,sp
62 set_gr_limmed 0xffff,0xffff,gr8
63 csthu gr8,@(sp,gr7),cc1,0
64 test_mem_limmed 0xffff,0xbeef,gr21
69 set_gr_limmed 0xdead,0xeeee,gr8
70 csthu gr8,@(sp,gr7),cc1,0
71 test_mem_limmed 0xffff,0xeeee,gr21
76 set_gr_limmed 0xffff,0xdddd,gr8
77 csthu gr8,@(sp,gr7),cc5,0
78 test_mem_limmed 0xffff,0xdddd,gr21
83 set_mem_limmed 0xdead,0xbeef,sp
85 set_gr_limmed 0xffff,0xffff,gr8
86 csthu gr8,@(sp,gr7),cc1,1
87 test_mem_limmed 0xdead,0xbeef,gr21
91 set_gr_limmed 0xffff,0xeeee,gr8
92 csthu gr8,@(sp,gr7),cc1,1
93 test_mem_limmed 0xdead,0xbeef,gr21
99 set_gr_limmed 0xffff,0xdddd,gr8
100 csthu gr8,@(sp,gr7),cc5,1
101 test_mem_limmed 0xdead,0xbeef,gr21
106 set_mem_limmed 0xdead,0xbeef,sp
108 set_gr_limmed 0xffff,0xffff,gr8
109 csthu gr8,@(sp,gr7),cc2,0
110 test_mem_limmed 0xdead,0xbeef,gr21
114 set_gr_limmed 0xffff,0xeeee,gr8
115 csthu gr8,@(sp,gr7),cc2,1
116 test_mem_limmed 0xdead,0xbeef,gr21
122 set_gr_limmed 0xffff,0xdddd,gr8
123 csthu gr8,@(sp,gr7),cc6,0
124 test_mem_limmed 0xdead,0xbeef,gr21
129 set_mem_limmed 0xdead,0xbeef,sp
131 set_gr_limmed 0xffff,0xffff,gr8
132 csthu gr8,@(sp,gr7),cc3,1
133 test_mem_limmed 0xdead,0xbeef,gr21
137 set_gr_limmed 0xffff,0xeeee,gr8
138 csthu gr8,@(sp,gr7),cc3,0
139 test_mem_limmed 0xdead,0xbeef,gr21
145 set_gr_limmed 0xffff,0xdddd,gr8
146 csthu gr8,@(sp,gr7),cc7,1
147 test_mem_limmed 0xdead,0xbeef,gr21