RISC-V: Cleanup the imply code and test cases for vendor xsf extensions.
[binutils-gdb.git] / sim / testsuite / frv / cmovfg.cgs
blob4109842cfa4b37a80e5227a31f608e6a845f32a3
1 # frv testcase for cmovfg $FRk,$GRj,$CCi,$cond
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global cmovfg
9 cmovfg:
10         set_spr_immed   0x1b1b,cccr
12         set_fr_iimmed   0xdead,0xbeef,fr8
13         set_gr_limmed   0,0,gr8
14         cmovfg          fr8,gr8,cc0,1
15         test_gr_limmed  0xdead,0xbeef,gr8
16         test_fr_limmed  0xdead,0xbeef,fr8
18         set_fr_iimmed   0xdead,0xbeef,fr8
19         set_gr_limmed   0,0,gr8
20         cmovfg          fr8,gr8,cc4,1
21         test_gr_limmed  0xdead,0xbeef,gr8
22         test_fr_limmed  0xdead,0xbeef,fr8
24         set_fr_iimmed   0xdead,0xbeef,fr8
25         set_gr_limmed   0,0,gr8
26         cmovfg          fr8,gr8,cc0,0
27         test_gr_limmed  0,0,gr8
28         test_fr_limmed  0xdead,0xbeef,fr8
30         set_fr_iimmed   0xdead,0xbeef,fr8
31         set_gr_limmed   0,0,gr8
32         cmovfg          fr8,gr8,cc4,0
33         test_gr_limmed  0,0,gr8
34         test_fr_limmed  0xdead,0xbeef,fr8
36         set_fr_iimmed   0xdead,0xbeef,fr8
37         set_gr_limmed   0,0,gr8
38         cmovfg          fr8,gr8,cc1,0
39         test_gr_limmed  0xdead,0xbeef,gr8
40         test_fr_limmed  0xdead,0xbeef,fr8
42         set_fr_iimmed   0xdead,0xbeef,fr8
43         set_gr_limmed   0,0,gr8
44         cmovfg          fr8,gr8,cc5,0
45         test_gr_limmed  0xdead,0xbeef,gr8
46         test_fr_limmed  0xdead,0xbeef,fr8
48         set_fr_iimmed   0xdead,0xbeef,fr8
49         set_gr_limmed   0,0,gr8
50         cmovfg          fr8,gr8,cc1,1
51         test_gr_limmed  0,0,gr8
52         test_fr_limmed  0xdead,0xbeef,fr8
54         set_fr_iimmed   0xdead,0xbeef,fr8
55         set_gr_limmed   0,0,gr8
56         cmovfg          fr8,gr8,cc5,1
57         test_gr_limmed  0,0,gr8
58         test_fr_limmed  0xdead,0xbeef,fr8
60         set_fr_iimmed   0xdead,0xbeef,fr8
61         set_gr_limmed   0,0,gr8
62         cmovfg          fr8,gr8,cc2,0
63         test_gr_limmed  0,0,gr8
64         test_fr_limmed  0xdead,0xbeef,fr8
66         set_fr_iimmed   0xdead,0xbeef,fr8
67         set_gr_limmed   0,0,gr8
68         cmovfg          fr8,gr8,cc2,1
69         test_gr_limmed  0,0,gr8
70         test_fr_limmed  0xdead,0xbeef,fr8
72         set_fr_iimmed   0xdead,0xbeef,fr8
73         set_gr_limmed   0,0,gr8
74         cmovfg          fr8,gr8,cc3,1
75         test_gr_limmed  0,0,gr8
76         test_fr_limmed  0xdead,0xbeef,fr8
78         set_fr_iimmed   0xdead,0xbeef,fr8
79         set_gr_limmed   0,0,gr8
80         cmovfg          fr8,gr8,cc7,0
81         test_gr_limmed  0,0,gr8
82         test_fr_limmed  0xdead,0xbeef,fr8
84         pass