Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / cmpba.cgs
blob160b9ef2cb99a83778587b7bef991dfed3018a5c
1 # frv testcase for cmpba $GRi,$GRj,$ICCi_1
2 # mach: fr400 fr550
4         .include "testutils.inc"
6         start
8         .global cmpba
9 cmpba:
10         set_gr_limmed   0xdead,0xbeef,gr7
11         set_gr_limmed   0xdead,0xbeef,gr8
12         set_icc         0x0e,0          ; Set mask opposite of expected
13         cmpba           gr7,gr8,icc0
14         test_icc        0 0 0 1 icc0
16         set_gr_limmed   0x21ad,0xbeef,gr8
17         set_icc         0x0e,0          ; Set mask opposite of expected
18         cmpba           gr7,gr8,icc0
19         test_icc        0 0 0 1 icc0
21         set_gr_limmed   0xde52,0xbeef,gr8
22         set_icc         0x0e,0          ; Set mask opposite of expected
23         cmpba           gr7,gr8,icc0
24         test_icc        0 0 0 1 icc0
26         set_gr_limmed   0xdead,0x41ef,gr8
27         set_icc         0x0e,0          ; Set mask opposite of expected
28         cmpba           gr7,gr8,icc0
29         test_icc        0 0 0 1 icc0
31         set_gr_limmed   0xdead,0xbe10,gr8
32         set_icc         0x03,0          ; Set mask opposite of expected
33         cmpba           gr7,gr8,icc0
34         test_icc        0 0 0 1 icc0
36         set_gr_limmed   0xbeef,0xdead,gr8
37         set_icc         0x0f,0          ; Set mask opposite of expected
38         cmpba           gr7,gr8,icc0
39         test_icc        0 0 0 0 icc0
41         pass