tmp105: Split out I2C message constants from header
[qemu/opensuse.git] / tests / tcg / cris / check_cmpxc.s
blobb237a931752f7529bbad944b6b88ce030d6d12f9
1 # mach: crisv0 crisv3 crisv8 crisv10 crisv32
2 # output: 2\n2\n2\n2\nffff\nffff\nffff\nffff\nffffffff\nffffffff\nffffffff\n78134452\n78134452\n78134452\n78134452\n4452\n80000032\n
4 .include "testutils.inc"
5 start
6 moveq 2,r3
7 cmps.b 0xff,r3
8 test_cc 0 0 0 1
9 checkr3 2
11 moveq 2,r3
12 cmps.w 0xffff,r3
13 test_cc 0 0 0 1
14 checkr3 2
16 moveq 2,r3
17 cmpu.b 0xff,r3
18 test_cc 1 0 0 1
19 checkr3 2
21 moveq 2,r3
22 move.d 0xffffffff,r4
23 cmpu.w -1,r3
24 test_cc 1 0 0 1
25 checkr3 2
27 move.d 0xffff,r3
28 cmpu.b -1,r3
29 test_cc 0 0 0 0
30 checkr3 ffff
32 move.d 0xffff,r3
33 cmpu.w -1,r3
34 test_cc 0 1 0 0
35 checkr3 ffff
37 move.d 0xffff,r3
38 cmps.b 0xff,r3
39 test_cc 0 0 0 1
40 checkr3 ffff
42 move.d 0xffff,r3
43 cmps.w 0xffff,r3
44 test_cc 0 0 0 1
45 checkr3 ffff
47 moveq -1,r3
48 cmps.b 0xff,r3
49 test_cc 0 1 0 0
50 checkr3 ffffffff
52 moveq -1,r3
53 cmps.w 0xff,r3
54 test_cc 1 0 0 0
55 checkr3 ffffffff
57 moveq -1,r3
58 cmps.w 0xffff,r3
59 test_cc 0 1 0 0
60 checkr3 ffffffff
62 move.d 0x78134452,r3
63 cmpu.b 0x89,r3
64 test_cc 0 0 0 0
65 checkr3 78134452
67 move.d 0x78134452,r3
68 cmps.b 0x89,r3
69 test_cc 0 0 0 1
70 checkr3 78134452
72 move.d 0x78134452,r3
73 cmpu.w 0xf789,r3
74 test_cc 0 0 0 0
75 checkr3 78134452
77 move.d 0x78134452,r3
78 cmps.w 0xf789,r3
79 test_cc 0 0 0 1
80 checkr3 78134452
82 move.d 0x4452,r3
83 cmps.w 0x8002,r3
84 test_cc 0 0 0 1
85 checkr3 4452
87 move.d 0x80000032,r3
88 cmpu.w 0x764,r3
89 test_cc 0 0 1 0
90 checkr3 80000032
92 quit