1 # frv testcase for cldshu @($GRi,$GRj),$GRk,$CCi,$cond
4 .include "testutils.inc"
10 set_spr_immed 0x1b1b,cccr
13 set_mem_limmed 0xdead,0xbeef,sp
14 set_gr_limmed 0xbeef,0xdead,gr8
18 cldshu @(sp,gr7),gr8,cc0,1
19 test_gr_limmed 0xffff,0xdead,gr8
24 cldshu @(sp,gr7),gr8,cc0,1
25 test_gr_limmed 0xffff,0xbeef,gr8
29 set_mem_limmed 0xffff,0x0000,sp
32 cldshu @(sp,gr7),gr8,cc4,1
37 set_mem_limmed 0xdead,0xbeef,sp
38 set_gr_limmed 0xbeef,0xdead,gr8
42 cldshu @(sp,gr7),gr8,cc0,0
43 test_gr_limmed 0xbeef,0xdead,gr8
47 cldshu @(sp,gr7),gr8,cc0,0
48 test_gr_limmed 0xbeef,0xdead,gr8
52 set_mem_limmed 0xffff,0x0000,sp
55 cldshu @(sp,gr7),gr8,cc4,0
56 test_gr_limmed 0xbeef,0xdead,gr8
60 set_mem_limmed 0xdead,0xbeef,sp
61 set_gr_limmed 0xbeef,0xdead,gr8
65 cldshu @(sp,gr7),gr8,cc1,0
66 test_gr_limmed 0xffff,0xdead,gr8
71 cldshu @(sp,gr7),gr8,cc1,0
72 test_gr_limmed 0xffff,0xbeef,gr8
76 set_mem_limmed 0xffff,0x0000,sp
79 cldshu @(sp,gr7),gr8,cc5,0
84 set_mem_limmed 0xdead,0xbeef,sp
85 set_gr_limmed 0xbeef,0xdead,gr8
89 cldshu @(sp,gr7),gr8,cc1,1
90 test_gr_limmed 0xbeef,0xdead,gr8
94 cldshu @(sp,gr7),gr8,cc1,1
95 test_gr_limmed 0xbeef,0xdead,gr8
99 set_mem_limmed 0xffff,0x0000,sp
102 cldshu @(sp,gr7),gr8,cc5,1
103 test_gr_limmed 0xbeef,0xdead,gr8
107 set_mem_limmed 0xdead,0xbeef,sp
108 set_gr_limmed 0xbeef,0xdead,gr8
112 cldshu @(sp,gr7),gr8,cc2,0
113 test_gr_limmed 0xbeef,0xdead,gr8
117 cldshu @(sp,gr7),gr8,cc2,1
118 test_gr_limmed 0xbeef,0xdead,gr8
122 set_mem_limmed 0xffff,0x0000,sp
125 cldshu @(sp,gr7),gr8,cc6,0
126 test_gr_limmed 0xbeef,0xdead,gr8
130 set_mem_limmed 0xdead,0xbeef,sp
131 set_gr_limmed 0xbeef,0xdead,gr8
135 cldshu @(sp,gr7),gr8,cc3,1
136 test_gr_limmed 0xbeef,0xdead,gr8
140 cldshu @(sp,gr7),gr8,cc3,0
141 test_gr_limmed 0xbeef,0xdead,gr8
145 set_mem_limmed 0xffff,0x0000,sp
148 cldshu @(sp,gr7),gr8,cc7,1
149 test_gr_limmed 0xbeef,0xdead,gr8
153 set_mem_limmed 0xdead,0xbeef,sp
156 cldshu @(gr8,gr7),gr8,cc0,1
157 test_gr_limmed 0xffff,0xbeef,gr8