cmpb.cgs revision 1.1 1 1.1 christos # frv testcase for cmpb $GRi,$GRj,$ICCi_1
2 1.1 christos # mach: fr400 fr550
3 1.1 christos
4 1.1 christos .include "testutils.inc"
5 1.1 christos
6 1.1 christos start
7 1.1 christos
8 1.1 christos .global cmpb
9 1.1 christos cmpb:
10 1.1 christos set_gr_limmed 0xdead,0xbeef,gr7
11 1.1 christos set_gr_limmed 0xdead,0xbeef,gr8
12 1.1 christos set_icc 0x00,0 ; Set mask opposite of expected
13 1.1 christos cmpb gr7,gr8,icc0
14 1.1 christos test_icc 1 1 1 1 icc0
15 1.1 christos
16 1.1 christos set_gr_limmed 0x21ad,0xbeef,gr8
17 1.1 christos set_icc 0x08,0 ; Set mask opposite of expected
18 1.1 christos cmpb gr7,gr8,icc0
19 1.1 christos test_icc 0 1 1 1 icc0
20 1.1 christos
21 1.1 christos set_gr_limmed 0xde52,0xbeef,gr8
22 1.1 christos set_icc 0x04,0 ; Set mask opposite of expected
23 1.1 christos cmpb gr7,gr8,icc0
24 1.1 christos test_icc 1 0 1 1 icc0
25 1.1 christos
26 1.1 christos set_gr_limmed 0xdead,0x41ef,gr8
27 1.1 christos set_icc 0x02,0 ; Set mask opposite of expected
28 1.1 christos cmpb gr7,gr8,icc0
29 1.1 christos test_icc 1 1 0 1 icc0
30 1.1 christos
31 1.1 christos set_gr_limmed 0xdead,0xbe10,gr8
32 1.1 christos set_icc 0x01,0 ; Set mask opposite of expected
33 1.1 christos cmpb gr7,gr8,icc0
34 1.1 christos test_icc 1 1 1 0 icc0
35 1.1 christos
36 1.1 christos set_gr_limmed 0xbeef,0xdead,gr8
37 1.1 christos set_icc 0x0f,0 ; Set mask opposite of expected
38 1.1 christos cmpb gr7,gr8,icc0
39 1.1 christos test_icc 0 0 0 0 icc0
40 1.1 christos
41 1.1 christos pass
42