RISC-V: Cleanup the imply code and test cases for vendor xsf extensions.
[binutils-gdb.git] / sim / testsuite / frv / cadd.cgs
blob291b8fb6675318f2dec33dd5844d4f21b03ae4a9
1 # frv testcase for cadd $GRi,$GRj,$GRk,$CCi,$cond
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global cadd
9 cadd:
10         set_spr_immed   0x1b1b,cccr
12         set_gr_immed    1,gr7
13         set_gr_immed    2,gr8
14         cadd            gr7,gr8,gr8,cc4,1
15         test_gr_immed   3,gr8
17         set_gr_limmed   0x7fff,0xffff,gr7
18         set_gr_immed    1,gr8
19         cadd            gr7,gr8,gr8,cc4,1
20         test_gr_limmed  0x8000,0x0000,gr8
22         cadd            gr8,gr8,gr8,cc4,1
23         test_gr_immed   0,gr8
25         set_gr_immed    1,gr7
26         set_gr_immed    2,gr8
27         cadd            gr7,gr8,gr8,cc4,0
28         test_gr_immed   2,gr8
30         set_gr_limmed   0x7fff,0xffff,gr7
31         set_gr_immed    1,gr8
32         cadd            gr7,gr8,gr8,cc4,0
33         test_gr_immed   1,gr8
35         cadd            gr8,gr8,gr8,cc4,0
36         test_gr_immed   1,gr8
38         set_gr_immed    1,gr7
39         set_gr_immed    2,gr8
40         cadd            gr7,gr8,gr8,cc5,0
41         test_gr_immed   3,gr8
43         set_gr_limmed   0x7fff,0xffff,gr7
44         set_gr_immed    1,gr8
45         cadd            gr7,gr8,gr8,cc5,0
46         test_gr_limmed  0x8000,0x0000,gr8
48         cadd            gr8,gr8,gr8,cc5,0
49         test_gr_immed   0,gr8
51         set_gr_immed    1,gr7
52         set_gr_immed    2,gr8
53         cadd            gr7,gr8,gr8,cc5,1
54         test_gr_immed   2,gr8
56         set_gr_limmed   0x7fff,0xffff,gr7
57         set_gr_immed    1,gr8
58         cadd            gr7,gr8,gr8,cc5,1
59         test_gr_immed   1,gr8
61         cadd            gr8,gr8,gr8,cc5,1
62         test_gr_immed   1,gr8
64         set_gr_immed    1,gr7
65         set_gr_immed    2,gr8
66         cadd            gr7,gr8,gr8,cc6,1
67         test_gr_immed   2,gr8
69         set_gr_limmed   0x7fff,0xffff,gr7
70         set_gr_immed    1,gr8
71         cadd            gr7,gr8,gr8,cc6,0
72         test_gr_immed   1,gr8
74         cadd            gr8,gr8,gr8,cc6,1
75         test_gr_immed   1,gr8
77         set_gr_immed    1,gr7
78         set_gr_immed    2,gr8
79         cadd            gr7,gr8,gr8,cc7,0
80         test_gr_immed   2,gr8
82         set_gr_limmed   0x7fff,0xffff,gr7
83         set_gr_immed    1,gr8
84         cadd            gr7,gr8,gr8,cc7,1
85         test_gr_immed   1,gr8
87         cadd            gr8,gr8,gr8,cc7,0
88         test_gr_immed   1,gr8
90         pass