RISC-V: Cleanup the imply code and test cases for vendor xsf extensions.
[binutils-gdb.git] / sim / testsuite / frv / cmpi.cgs
bloba8324db553173c31e6df81f2b1a7ddd192e1d23a
1 # frv testcase for cmpi $GRi,$s12,$ICCi_1
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global cmpi
9 cmpi:
10         set_gr_immed    2,gr8
11         set_icc         0x0f,0          ; Set mask opposite of expected
12         cmpi            gr8,1,icc0
13         test_icc        0 0 0 0 icc0
15         set_gr_limmed   0x8000,0x0000,gr8
16         set_icc         0x0d,0          ; Set mask opposite of expected
17         cmpi            gr8,1,icc0
18         test_icc        0 0 1 0 icc0
20         set_gr_immed    0x1ff,gr8
21         set_icc         0x0b,0          ; Set mask opposite of expected
22         cmpi            gr8,0x1ff,icc0
23         test_icc        0 1 0 0 icc0
25         set_gr_immed    0,gr8
26         set_icc         0x06,0          ; Set mask opposite of expected
27         cmpi            gr8,1,icc0
28         test_icc        1 0 0 1 icc0
30         set_gr_immed    2,gr8
31         set_icc         0x0e,0          ; Set mask opposite of expected
32         cmpi            gr8,-1,icc0
33         test_icc        0 0 0 1 icc0
35         set_gr_limmed   0x8000,0x0000,gr8
36         set_icc         0x06,0          ; Set mask opposite of expected
37         cmpi            gr8,-1,icc0
38         test_icc        1 0 0 1 icc0
40         set_gr_immed    -512,gr8
41         set_icc         0x0b,0          ; Set mask opposite of expected
42         cmpi            gr8,-512,icc0
43         test_icc        0 1 0 0 icc0
45         set_gr_immed    0,gr8
46         set_icc         0x0e,0          ; Set mask opposite of expected
47         cmpi            gr8,-1,icc0
48         test_icc        0 0 0 1 icc0
50         pass