1 # frv testcase for csllcc $GRi,$GRj,$GRk,$CCi,$cond
4 .include "testutils.inc"
10 set_spr_immed 0x1b1b,cccr
12 set_gr_limmed 0xdead,0xbee0,gr7 ; Shift by 0
14 set_icc 0x0f,0 ; Set mask opposite of expected
15 csllcc gr8,gr7,gr8,cc0,1
19 set_gr_limmed 0xdead,0xbee1,gr7 ; Shift by 1
21 set_icc 0x0f,0 ; Set mask opposite of expected
22 csllcc gr8,gr7,gr8,cc0,1
26 set_gr_limmed 0xdead,0xbeff,gr7 ; Shift by 31
28 set_icc 0x07,0 ; Set mask opposite of expected
29 csllcc gr8,gr7,gr8,cc4,1
31 test_gr_limmed 0x8000,0x0000,gr8
33 set_gr_limmed 0xdead,0xbeff,gr7 ; clear register
35 set_icc 0x08,0 ; Set mask opposite of expected
36 csllcc gr8,gr7,gr8,cc4,1
38 test_gr_immed 0x00000000,gr8
40 set_gr_limmed 0xdead,0xbee0,gr7 ; Shift by 0
42 set_icc 0x0d,0 ; Set mask opposite of expected
43 csllcc gr8,gr7,gr8,cc0,0
47 set_gr_limmed 0xdead,0xbee1,gr7 ; Shift by 1
49 set_icc 0x0f,0 ; Set mask opposite of expected
50 csllcc gr8,gr7,gr8,cc0,0
54 set_gr_limmed 0xdead,0xbeff,gr7 ; Shift by 31
56 set_icc 0x07,0 ; Set mask opposite of expected
57 csllcc gr8,gr7,gr8,cc4,0
61 set_gr_limmed 0xdead,0xbeff,gr7 ; clear register
63 set_icc 0x0a,0 ; Set mask opposite of expected
64 csllcc gr8,gr7,gr8,cc4,0
68 set_gr_limmed 0xdead,0xbee0,gr7 ; Shift by 0
70 set_icc 0x0f,1 ; Set mask opposite of expected
71 csllcc gr8,gr7,gr8,cc1,0
75 set_gr_limmed 0xdead,0xbee1,gr7 ; Shift by 1
77 set_icc 0x0f,1 ; Set mask opposite of expected
78 csllcc gr8,gr7,gr8,cc1,0
82 set_gr_limmed 0xdead,0xbeff,gr7 ; Shift by 31
84 set_icc 0x07,1 ; Set mask opposite of expected
85 csllcc gr8,gr7,gr8,cc5,0
87 test_gr_limmed 0x8000,0x0000,gr8
89 set_gr_limmed 0xdead,0xbeff,gr7 ; clear register
91 set_icc 0x08,1 ; Set mask opposite of expected
92 csllcc gr8,gr7,gr8,cc5,0
94 test_gr_immed 0x00000000,gr8
96 set_gr_limmed 0xdead,0xbee0,gr7 ; Shift by 0
98 set_icc 0x0d,1 ; Set mask opposite of expected
99 csllcc gr8,gr7,gr8,cc1,1
100 test_icc 1 1 0 1 icc1
103 set_gr_limmed 0xdead,0xbee1,gr7 ; Shift by 1
105 set_icc 0x0f,1 ; Set mask opposite of expected
106 csllcc gr8,gr7,gr8,cc1,1
107 test_icc 1 1 1 1 icc1
110 set_gr_limmed 0xdead,0xbeff,gr7 ; Shift by 31
112 set_icc 0x07,1 ; Set mask opposite of expected
113 csllcc gr8,gr7,gr8,cc5,1
114 test_icc 0 1 1 1 icc1
117 set_gr_limmed 0xdead,0xbeff,gr7 ; clear register
119 set_icc 0x0a,1 ; Set mask opposite of expected
120 csllcc gr8,gr7,gr8,cc5,1
121 test_icc 1 0 1 0 icc1
124 set_gr_limmed 0xdead,0xbee0,gr7 ; Shift by 0
126 set_icc 0x0d,2 ; Set mask opposite of expected
127 csllcc gr8,gr7,gr8,cc2,0
128 test_icc 1 1 0 1 icc2
131 set_gr_limmed 0xdead,0xbee1,gr7 ; Shift by 1
133 set_icc 0x0f,2 ; Set mask opposite of expected
134 csllcc gr8,gr7,gr8,cc2,0
135 test_icc 1 1 1 1 icc2
138 set_gr_limmed 0xdead,0xbeff,gr7 ; Shift by 31
140 set_icc 0x07,2 ; Set mask opposite of expected
141 csllcc gr8,gr7,gr8,cc6,1
142 test_icc 0 1 1 1 icc2
145 set_gr_limmed 0xdead,0xbeff,gr7 ; clear register
147 set_icc 0x0a,2 ; Set mask opposite of expected
148 csllcc gr8,gr7,gr8,cc6,1
149 test_icc 1 0 1 0 icc2
152 set_gr_limmed 0xdead,0xbee0,gr7 ; Shift by 0
154 set_icc 0x0d,3 ; Set mask opposite of expected
155 csllcc gr8,gr7,gr8,cc3,0
156 test_icc 1 1 0 1 icc3
159 set_gr_limmed 0xdead,0xbee1,gr7 ; Shift by 1
161 set_icc 0x0f,3 ; Set mask opposite of expected
162 csllcc gr8,gr7,gr8,cc3,0
163 test_icc 1 1 1 1 icc3
166 set_gr_limmed 0xdead,0xbeff,gr7 ; Shift by 31
168 set_icc 0x07,3 ; Set mask opposite of expected
169 csllcc gr8,gr7,gr8,cc7,1
170 test_icc 0 1 1 1 icc3
173 set_gr_limmed 0xdead,0xbeff,gr7 ; clear register
175 set_icc 0x0a,3 ; Set mask opposite of expected
176 csllcc gr8,gr7,gr8,cc7,1
177 test_icc 1 0 1 0 icc3