1 # frv testcase for csub $GRi,$GRj,$GRk,$CCi,$cond
4 .include "testutils.inc"
10 set_spr_immed 0x1b1b,cccr
14 csub gr8,gr7,gr8,cc4,1
18 set_gr_limmed 0x8000,0x0000,gr8
19 csub gr8,gr7,gr8,cc4,1
20 test_gr_limmed 0x7fff,0xffff,gr8
22 csub gr8,gr8,gr8,cc4,1
25 csub gr8,gr7,gr8,cc4,1
30 csub gr8,gr7,gr8,cc4,0
34 set_gr_limmed 0x8000,0x0000,gr8
35 csub gr8,gr7,gr8,cc4,0
36 test_gr_limmed 0x8000,0x0000,gr8
38 csub gr8,gr8,gr8,cc4,0
39 test_gr_limmed 0x8000,0x0000,gr8
41 csub gr8,gr7,gr8,cc4,0
42 test_gr_limmed 0x8000,0x0000,gr8
46 csub gr8,gr7,gr8,cc5,0
50 set_gr_limmed 0x8000,0x0000,gr8
51 csub gr8,gr7,gr8,cc5,0
52 test_gr_limmed 0x7fff,0xffff,gr8
54 csub gr8,gr8,gr8,cc5,0
57 csub gr8,gr7,gr8,cc5,0
62 csub gr8,gr7,gr8,cc5,1
66 set_gr_limmed 0x8000,0x0000,gr8
67 csub gr8,gr7,gr8,cc5,1
68 test_gr_limmed 0x8000,0x0000,gr8
70 csub gr8,gr8,gr8,cc5,1
71 test_gr_limmed 0x8000,0x0000,gr8
73 csub gr8,gr7,gr8,cc5,1
74 test_gr_limmed 0x8000,0x0000,gr8
78 csub gr8,gr7,gr8,cc6,1
82 set_gr_limmed 0x8000,0x0000,gr8
83 csub gr8,gr7,gr8,cc6,0
84 test_gr_limmed 0x8000,0x0000,gr8
86 csub gr8,gr8,gr8,cc6,1
87 test_gr_limmed 0x8000,0x0000,gr8
89 csub gr8,gr7,gr8,cc6,0
90 test_gr_limmed 0x8000,0x0000,gr8
94 csub gr8,gr7,gr8,cc7,0
98 set_gr_limmed 0x8000,0x0000,gr8
99 csub gr8,gr7,gr8,cc7,1
100 test_gr_limmed 0x8000,0x0000,gr8
102 csub gr8,gr8,gr8,cc7,0
103 test_gr_limmed 0x8000,0x0000,gr8
105 csub gr8,gr7,gr8,cc7,1
106 test_gr_limmed 0x8000,0x0000,gr8