RISC-V: Cleanup the imply code and test cases for vendor xsf extensions.
[binutils-gdb.git] / sim / testsuite / frv / cmnot.cgs
blobcc93c016e20071e62c08aff2fe2182a90186365c
1 # frv testcase for cmnot $FRintj,$FRintk,$CCi,$cond
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global cmnot
9 cmnot:
10         set_spr_immed   0x1b1b,cccr
12         set_fr_iimmed   0xaaaa,0xaaaa,fr7
13         cmnot           fr7,fr7,cc0,1
14         test_fr_iimmed  0x55555555,fr7
16         set_fr_iimmed   0xdead,0xbeef,fr7
17         cmnot           fr7,fr7,cc4,1
18         test_fr_iimmed  0x21524110,fr7
20         set_fr_iimmed   0xaaaa,0xaaaa,fr7
21         cmnot           fr7,fr7,cc1,0
22         test_fr_iimmed  0x55555555,fr7
24         set_fr_iimmed   0xdead,0xbeef,fr7
25         cmnot           fr7,fr7,cc5,0
26         test_fr_iimmed  0x21524110,fr7
28         set_fr_iimmed   0xaaaa,0xaaaa,fr7
29         cmnot           fr7,fr7,cc0,0
30         test_fr_iimmed  0xaaaaaaaa,fr7
32         set_fr_iimmed   0xdead,0xbeef,fr7
33         cmnot           fr7,fr7,cc4,0
34         test_fr_iimmed  0xdeadbeef,fr7
36         set_fr_iimmed   0xaaaa,0xaaaa,fr7
37         cmnot           fr7,fr7,cc1,1
38         test_fr_iimmed  0xaaaaaaaa,fr7
40         set_fr_iimmed   0xdead,0xbeef,fr7
41         cmnot           fr7,fr7,cc5,1
42         test_fr_iimmed  0xdeadbeef,fr7
44         set_fr_iimmed   0xaaaa,0xaaaa,fr7
45         cmnot           fr7,fr7,cc2,0
46         test_fr_iimmed  0xaaaaaaaa,fr7
48         set_fr_iimmed   0xdead,0xbeef,fr7
49         cmnot           fr7,fr7,cc6,1
50         test_fr_iimmed  0xdeadbeef,fr7
52         set_fr_iimmed   0xaaaa,0xaaaa,fr7
53         cmnot           fr7,fr7,cc3,0
54         test_fr_iimmed  0xaaaaaaaa,fr7
56         set_fr_iimmed   0xdead,0xbeef,fr7
57         cmnot           fr7,fr7,cc7,1
58         test_fr_iimmed  0xdeadbeef,fr7
60         pass