RISC-V: Cleanup the imply code and test cases for vendor xsf extensions.
[binutils-gdb.git] / sim / testsuite / frv / cmor.cgs
blobebdc5f2a31342060999cf72e491ed5f58e7b55a0
1 # frv testcase for cmor $FRinti,$FRintj,$FRintk,$CCi,$cond
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global cmor
9 cmor:
10         set_spr_immed   0x1b1b,cccr
12         set_fr_iimmed   0xaaaa,0xaaaa,fr7
13         set_fr_iimmed   0x5555,0x5555,fr8
14         cmor            fr7,fr8,fr8,cc0,1
15         test_fr_iimmed  0xffffffff,fr8
17         set_fr_iimmed   0x0000,0x0000,fr7
18         set_fr_iimmed   0x0000,0x0000,fr8
19         cmor            fr7,fr8,fr8,cc0,1
20         test_fr_iimmed  0x00000000,fr8
22         set_fr_iimmed   0xdead,0x0000,fr7
23         set_fr_iimmed   0x0000,0xbeef,fr8
24         cmor            fr7,fr8,fr8,cc4,1
25         test_fr_iimmed  0xdeadbeef,fr8
27         set_fr_iimmed   0xaaaa,0xaaaa,fr7
28         set_fr_iimmed   0x5555,0x5555,fr8
29         cmor            fr7,fr8,fr8,cc1,0
30         test_fr_iimmed  0xffffffff,fr8
32         set_fr_iimmed   0x0000,0x0000,fr7
33         set_fr_iimmed   0x0000,0x0000,fr8
34         cmor            fr7,fr8,fr8,cc1,0
35         test_fr_iimmed  0x00000000,fr8
37         set_fr_iimmed   0xdead,0x0000,fr7
38         set_fr_iimmed   0x0000,0xbeef,fr8
39         cmor            fr7,fr8,fr8,cc5,0
40         test_fr_iimmed  0xdeadbeef,fr8
42         set_fr_iimmed   0xaaaa,0xaaaa,fr7
43         set_fr_iimmed   0x5555,0x5555,fr8
44         cmor            fr7,fr8,fr8,cc0,0
45         test_fr_iimmed  0x55555555,fr8
47         set_fr_iimmed   0xdead,0xbeef,fr7
48         set_fr_iimmed   0x0000,0x0000,fr8
49         cmor            fr7,fr8,fr8,cc0,0
50         test_fr_iimmed  0x00000000,fr8
52         set_fr_iimmed   0xdead,0x0000,fr7
53         set_fr_iimmed   0x0000,0xbeef,fr8
54         cmor            fr7,fr8,fr8,cc4,0
55         test_fr_iimmed  0x0000beef,fr8
57         set_fr_iimmed   0xaaaa,0xaaaa,fr7
58         set_fr_iimmed   0x5555,0x5555,fr8
59         cmor            fr7,fr8,fr8,cc1,1
60         test_fr_iimmed  0x55555555,fr8
62         set_fr_iimmed   0xdead,0xbeef,fr7
63         set_fr_iimmed   0x0000,0x0000,fr8
64         cmor            fr7,fr8,fr8,cc1,1
65         test_fr_iimmed  0x00000000,fr8
67         set_fr_iimmed   0xdead,0x0000,fr7
68         set_fr_iimmed   0x0000,0xbeef,fr8
69         cmor            fr7,fr8,fr8,cc5,1
70         test_fr_iimmed  0x0000beef,fr8
72         set_fr_iimmed   0xaaaa,0xaaaa,fr7
73         set_fr_iimmed   0x5555,0x5555,fr8
74         cmor            fr7,fr8,fr8,cc2,0
75         test_fr_iimmed  0x55555555,fr8
77         set_fr_iimmed   0xdead,0xbeef,fr7
78         set_fr_iimmed   0x0000,0x0000,fr8
79         cmor            fr7,fr8,fr8,cc2,1
80         test_fr_iimmed  0x00000000,fr8
82         set_fr_iimmed   0xdead,0x0000,fr7
83         set_fr_iimmed   0x0000,0xbeef,fr8
84         cmor            fr7,fr8,fr8,cc6,0
85         test_fr_iimmed  0x0000beef,fr8
87         set_fr_iimmed   0xaaaa,0xaaaa,fr7
88         set_fr_iimmed   0x5555,0x5555,fr8
89         cmor            fr7,fr8,fr8,cc3,1
90         test_fr_iimmed  0x55555555,fr8
92         set_fr_iimmed   0xdead,0xbeef,fr7
93         set_fr_iimmed   0x0000,0x0000,fr8
94         cmor            fr7,fr8,fr8,cc3,0
95         test_fr_iimmed  0x00000000,fr8
97         set_fr_iimmed   0xdead,0x0000,fr7
98         set_fr_iimmed   0x0000,0xbeef,fr8
99         cmor            fr7,fr8,fr8,cc7,1
100         test_fr_iimmed  0x0000beef,fr8
101         pass