1 # frv testcase for csubcc $GRi,$GRj,$GRk,$CCi,$cond
4 .include "testutils.inc"
10 set_spr_immed 0x1b1b,cccr
14 set_icc 0x0f,0 ; Set mask opposite of expected
15 csubcc gr8,gr7,gr8,cc0,1
20 set_gr_limmed 0x8000,0x0000,gr8
21 set_icc 0x0d,0 ; Set mask opposite of expected
22 csubcc gr8,gr7,gr8,cc0,1
24 test_gr_limmed 0x7fff,0xffff,gr8
26 set_icc 0x0b,0 ; Set mask opposite of expected
27 csubcc gr8,gr8,gr8,cc4,1
31 set_icc 0x06,0 ; Set mask opposite of expected
32 csubcc gr8,gr7,gr8,cc4,1
34 test_gr_limmed 0xffff,0xffff,gr8
38 set_icc 0x0f,0 ; Set mask opposite of expected
39 csubcc gr8,gr7,gr8,cc0,0
44 set_gr_limmed 0x8000,0x0000,gr8
45 set_icc 0x0d,0 ; Set mask opposite of expected
46 csubcc gr8,gr7,gr8,cc0,0
48 test_gr_limmed 0x8000,0x0000,gr8
50 set_icc 0x0b,0 ; Set mask opposite of expected
51 csubcc gr8,gr8,gr8,cc4,0
53 test_gr_limmed 0x8000,0x0000,gr8
55 set_icc 0x06,0 ; Set mask opposite of expected
56 csubcc gr8,gr7,gr8,cc4,0
58 test_gr_limmed 0x8000,0x0000,gr8
62 set_icc 0x0f,1 ; Set mask opposite of expected
63 csubcc gr8,gr7,gr8,cc1,0
68 set_gr_limmed 0x8000,0x0000,gr8
69 set_icc 0x0d,1 ; Set mask opposite of expected
70 csubcc gr8,gr7,gr8,cc1,0
72 test_gr_limmed 0x7fff,0xffff,gr8
74 set_icc 0x0b,1 ; Set mask opposite of expected
75 csubcc gr8,gr8,gr8,cc5,0
79 set_icc 0x06,1 ; Set mask opposite of expected
80 csubcc gr8,gr7,gr8,cc5,0
82 test_gr_limmed 0xffff,0xffff,gr8
86 set_icc 0x0f,1 ; Set mask opposite of expected
87 csubcc gr8,gr7,gr8,cc1,1
92 set_gr_limmed 0x8000,0x0000,gr8
93 set_icc 0x0d,1 ; Set mask opposite of expected
94 csubcc gr8,gr7,gr8,cc1,1
96 test_gr_limmed 0x8000,0x0000,gr8
98 set_icc 0x0b,1 ; Set mask opposite of expected
99 csubcc gr8,gr8,gr8,cc5,1
100 test_icc 1 0 1 1 icc1
101 test_gr_limmed 0x8000,0x0000,gr8
103 set_icc 0x06,1 ; Set mask opposite of expected
104 csubcc gr8,gr7,gr8,cc5,1
105 test_icc 0 1 1 0 icc1
106 test_gr_limmed 0x8000,0x0000,gr8
110 set_icc 0x0f,2 ; Set mask opposite of expected
111 csubcc gr8,gr7,gr8,cc2,0
112 test_icc 1 1 1 1 icc2
116 set_gr_limmed 0x8000,0x0000,gr8
117 set_icc 0x0d,2 ; Set mask opposite of expected
118 csubcc gr8,gr7,gr8,cc2,0
119 test_icc 1 1 0 1 icc2
120 test_gr_limmed 0x8000,0x0000,gr8
122 set_icc 0x0b,2 ; Set mask opposite of expected
123 csubcc gr8,gr8,gr8,cc6,1
124 test_icc 1 0 1 1 icc2
125 test_gr_limmed 0x8000,0x0000,gr8
127 set_icc 0x06,2 ; Set mask opposite of expected
128 csubcc gr8,gr7,gr8,cc6,1
129 test_icc 0 1 1 0 icc2
130 test_gr_limmed 0x8000,0x0000,gr8
134 set_icc 0x0f,3 ; Set mask opposite of expected
135 csubcc gr8,gr7,gr8,cc3,0
136 test_icc 1 1 1 1 icc3
140 set_gr_limmed 0x8000,0x0000,gr8
141 set_icc 0x0d,3 ; Set mask opposite of expected
142 csubcc gr8,gr7,gr8,cc3,0
143 test_icc 1 1 0 1 icc3
144 test_gr_limmed 0x8000,0x0000,gr8
146 set_icc 0x0b,3 ; Set mask opposite of expected
147 csubcc gr8,gr8,gr8,cc7,1
148 test_icc 1 0 1 1 icc3
149 test_gr_limmed 0x8000,0x0000,gr8
151 set_icc 0x06,3 ; Set mask opposite of expected
152 csubcc gr8,gr7,gr8,cc7,1
153 test_icc 0 1 1 0 icc3
154 test_gr_limmed 0x8000,0x0000,gr8