vhost-user: use VHOST_USER_XXX macro for switch statement
[qemu/ar7.git] / tests / tcg / cris / check_cmpc.s
blob267c9ba8c01fb01cd77b109db778598b1583abfc
1 # mach: crisv0 crisv3 crisv8 crisv10 crisv32
2 # output: ffffffff\n2\nffff\nffffffff\n78134452\nffffffff\n2\nffff\nfedaffff\n78134452\nffffffff\n2\nff\nfeda49ff\n78134452\n85649282\n
4 .include "testutils.inc"
5 start
6 moveq -1,r3
7 cmp.d -2,r3
8 test_cc 0 0 0 0
9 checkr3 ffffffff
11 moveq 2,r3
12 cmp.d 1,r3
13 test_cc 0 0 0 0
14 checkr3 2
16 move.d 0xffff,r3
17 cmp.d -0xffff,r3
18 test_cc 0 0 0 1
19 checkr3 ffff
21 moveq -1,r3
22 cmp.d 1,r3
23 test_cc 1 0 0 0
24 checkr3 ffffffff
26 move.d 0x78134452,r3
27 cmp.d -0x5432f789,r3
28 test_cc 1 0 1 1
29 checkr3 78134452
31 moveq -1,r3
32 cmp.w -2,r3
33 test_cc 0 0 0 0
34 checkr3 ffffffff
36 moveq 2,r3
37 cmp.w 1,r3
38 test_cc 0 0 0 0
39 checkr3 2
41 move.d 0xffff,r3
42 cmp.w 1,r3
43 test_cc 1 0 0 0
44 checkr3 ffff
46 move.d 0xfedaffff,r3
47 cmp.w 1,r3
48 test_cc 1 0 0 0
49 checkr3 fedaffff
51 move.d 0x78134452,r3
52 cmp.w 0x877,r3
53 test_cc 0 0 0 0
54 checkr3 78134452
56 moveq -1,r3
57 cmp.b -2,r3
58 test_cc 0 0 0 0
59 checkr3 ffffffff
61 moveq 2,r3
62 cmp.b 1,r3
63 test_cc 0 0 0 0
64 checkr3 2
66 move.d 0xff,r3
67 cmp.b 1,r3
68 test_cc 1 0 0 0
69 checkr3 ff
71 move.d 0xfeda49ff,r3
72 cmp.b 1,r3
73 test_cc 1 0 0 0
74 checkr3 feda49ff
76 move.d 0x78134452,r3
77 cmp.b 0x77,r3
78 test_cc 1 0 0 1
79 checkr3 78134452
81 move.d 0x85649282,r3
82 cmp.b 0x82,r3
83 test_cc 0 1 0 0
84 checkr3 85649282
86 quit