RISC-V: Cleanup the imply code and test cases for vendor xsf extensions.
[binutils-gdb.git] / sim / testsuite / frv / cmexpdhd.cgs
blob33a3c009375c5a04ec332969d3bbd56e8fe8c5da
1 # frv testcase for cmexpdhd $FRi,$s6,$FRj,$CCi,$cond
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global cmexpdhd
9 cmexpdhd:
10         set_spr_immed   0x1b1b,cccr
12         set_fr_iimmed   0xdead,0xbeef,fr10
13         cmexpdhd        fr10,0,fr12,cc0,1
14         test_fr_limmed  0xdead,0xdead,fr12
15         test_fr_limmed  0xdead,0xdead,fr13
17         cmexpdhd        fr10,1,fr12,cc0,1
18         test_fr_limmed  0xbeef,0xbeef,fr12
19         test_fr_limmed  0xbeef,0xbeef,fr13
21         cmexpdhd        fr10,62,fr12,cc4,1
22         test_fr_limmed  0xdead,0xdead,fr12
23         test_fr_limmed  0xdead,0xdead,fr13
25         cmexpdhd        fr10,63,fr12,cc4,1
26         test_fr_limmed  0xbeef,0xbeef,fr12
27         test_fr_limmed  0xbeef,0xbeef,fr13
29         set_fr_iimmed   0xdead,0xbeef,fr10
30         cmexpdhd        fr10,0,fr12,cc1,0
31         test_fr_limmed  0xdead,0xdead,fr12
32         test_fr_limmed  0xdead,0xdead,fr13
34         cmexpdhd        fr10,1,fr12,cc1,0
35         test_fr_limmed  0xbeef,0xbeef,fr12
36         test_fr_limmed  0xbeef,0xbeef,fr13
38         cmexpdhd        fr10,62,fr12,cc5,0
39         test_fr_limmed  0xdead,0xdead,fr12
40         test_fr_limmed  0xdead,0xdead,fr13
42         cmexpdhd        fr10,63,fr12,cc5,0
43         test_fr_limmed  0xbeef,0xbeef,fr12
44         test_fr_limmed  0xbeef,0xbeef,fr13
46         set_fr_iimmed   0x1111,0x1111,fr12
47         set_fr_iimmed   0x2222,0x2222,fr13
48         set_fr_iimmed   0xdead,0xbeef,fr10
49         cmexpdhd        fr10,0,fr12,cc0,0
50         test_fr_limmed  0x1111,0x1111,fr12
51         test_fr_limmed  0x2222,0x2222,fr13
53         cmexpdhd        fr10,1,fr12,cc0,0
54         test_fr_limmed  0x1111,0x1111,fr12
55         test_fr_limmed  0x2222,0x2222,fr13
57         cmexpdhd        fr10,62,fr12,cc4,0
58         test_fr_limmed  0x1111,0x1111,fr12
59         test_fr_limmed  0x2222,0x2222,fr13
61         cmexpdhd        fr10,63,fr12,cc4,0
62         test_fr_limmed  0x1111,0x1111,fr12
63         test_fr_limmed  0x2222,0x2222,fr13
65         set_fr_iimmed   0xdead,0xbeef,fr10
66         cmexpdhd        fr10,0,fr12,cc1,1
67         test_fr_limmed  0x1111,0x1111,fr12
68         test_fr_limmed  0x2222,0x2222,fr13
70         cmexpdhd        fr10,1,fr12,cc1,1
71         test_fr_limmed  0x1111,0x1111,fr12
72         test_fr_limmed  0x2222,0x2222,fr13
74         cmexpdhd        fr10,62,fr12,cc5,1
75         test_fr_limmed  0x1111,0x1111,fr12
76         test_fr_limmed  0x2222,0x2222,fr13
78         cmexpdhd        fr10,63,fr12,cc5,1
79         test_fr_limmed  0x1111,0x1111,fr12
80         test_fr_limmed  0x2222,0x2222,fr13
82         set_fr_iimmed   0xdead,0xbeef,fr10
83         cmexpdhd        fr10,0,fr12,cc2,1
84         test_fr_limmed  0x1111,0x1111,fr12
85         test_fr_limmed  0x2222,0x2222,fr13
87         cmexpdhd        fr10,1,fr12,cc2,0
88         test_fr_limmed  0x1111,0x1111,fr12
89         test_fr_limmed  0x2222,0x2222,fr13
91         cmexpdhd        fr10,62,fr12,cc6,1
92         test_fr_limmed  0x1111,0x1111,fr12
93         test_fr_limmed  0x2222,0x2222,fr13
95         cmexpdhd        fr10,63,fr12,cc6,0
96         test_fr_limmed  0x1111,0x1111,fr12
97         test_fr_limmed  0x2222,0x2222,fr13
99         set_fr_iimmed   0xdead,0xbeef,fr10
100         cmexpdhd        fr10,0,fr12,cc3,1
101         test_fr_limmed  0x1111,0x1111,fr12
102         test_fr_limmed  0x2222,0x2222,fr13
104         cmexpdhd        fr10,1,fr12,cc3,0
105         test_fr_limmed  0x1111,0x1111,fr12
106         test_fr_limmed  0x2222,0x2222,fr13
108         cmexpdhd        fr10,62,fr12,cc7,1
109         test_fr_limmed  0x1111,0x1111,fr12
110         test_fr_limmed  0x2222,0x2222,fr13
112         cmexpdhd        fr10,63,fr12,cc7,0
113         test_fr_limmed  0x1111,0x1111,fr12
114         test_fr_limmed  0x2222,0x2222,fr13
116         pass