xref: /openbmc/qemu/tests/tcg/cris/bare/check_boundc.s (revision ca693d1c)
1# mach: crisv0 crisv3 crisv8 crisv10 crisv32
2# output: 2\n2\nffff\nffffffff\n5432f789\n2\nffff\n2\nffff\nffff\nf789\n2\n2\nff\nff\nff\n89\n0\nff\n
3
4 .include "testutils.inc"
5 start
6 moveq -1,r3
7 moveq 2,r4
8 bound.d 2,r3
9 test_move_cc 0 0 0 0
10 checkr3 2
11
12 moveq 2,r3
13 bound.d 0xffffffff,r3
14 test_move_cc 0 0 0 0
15 checkr3 2
16
17 move.d 0xffff,r3
18 bound.d 0xffff,r3
19 test_move_cc 0 0 0 0
20 checkr3 ffff
21
22 moveq -1,r3
23 bound.d 0xffffffff,r3
24 test_move_cc 1 0 0 0
25 checkr3 ffffffff
26
27 move.d 0x78134452,r3
28 bound.d 0x5432f789,r3
29 test_move_cc 0 0 0 0
30 checkr3 5432f789
31
32 moveq -1,r3
33 bound.w 2,r3
34 test_move_cc 0 0 0 0
35 checkr3 2
36
37 moveq -1,r3
38 bound.w 0xffff,r3
39 test_move_cc 0 0 0 0
40 checkr3 ffff
41
42 moveq 2,r3
43 bound.w 0xffff,r3
44 test_move_cc 0 0 0 0
45 checkr3 2
46
47 move.d 0xffff,r3
48 bound.w 0xffff,r3
49 test_move_cc 0 0 0 0
50 checkr3 ffff
51
52 move.d 0xfedaffff,r3
53 bound.w 0xffff,r3
54 test_move_cc 0 0 0 0
55 checkr3 ffff
56
57 move.d 0x78134452,r3
58 bound.w 0xf789,r3
59 test_move_cc 0 0 0 0
60 checkr3 f789
61
62 moveq -1,r3
63 bound.b 2,r3
64 test_move_cc 0 0 0 0
65 checkr3 2
66
67 moveq 2,r3
68 bound.b 0xff,r3
69 test_move_cc 0 0 0 0
70 checkr3 2
71
72 moveq -1,r3
73 bound.b 0xff,r3
74 test_move_cc 0 0 0 0
75 checkr3 ff
76
77 move.d 0xff,r3
78 bound.b 0xff,r3
79 test_move_cc 0 0 0 0
80 checkr3 ff
81
82 move.d 0xfeda49ff,r3
83 bound.b 0xff,r3
84 test_move_cc 0 0 0 0
85 checkr3 ff
86
87 move.d 0x78134452,r3
88 bound.b 0x89,r3
89 test_move_cc 0 0 0 0
90 checkr3 89
91
92 bound.w 0,r3
93 test_move_cc 0 1 0 0
94 checkr3 0
95
96 move.d 0xffff,r3
97 bound.b -1,r3
98 test_move_cc 0 0 0 0
99 checkr3 ff
100
101 quit
102