Statistics
| Branch: | Revision:

root / tests / tcg / cris / check_btst.s @ c09015dd

History | View | Annotate | Download (1.2 kB)

1 dd43edf4 ths
# mach: crisv0 crisv3 crisv8 crisv10 crisv32
2 dd43edf4 ths
# output: 1111\n
3 dd43edf4 ths
4 dd43edf4 ths
 .include "testutils.inc"
5 dd43edf4 ths
 start
6 dd43edf4 ths
 clearf nzvc
7 dd43edf4 ths
 moveq -1,r3
8 dd43edf4 ths
 .if 1 ;..asm.arch.cris.v32
9 dd43edf4 ths
 .else
10 dd43edf4 ths
 setf vc
11 dd43edf4 ths
 .endif
12 dd43edf4 ths
 btstq 0,r3
13 dd43edf4 ths
 test_cc 1 0 0 0
14 dd43edf4 ths
15 dd43edf4 ths
 moveq 2,r3
16 dd43edf4 ths
 btstq 1,r3
17 dd43edf4 ths
 test_cc 1 0 0 0
18 dd43edf4 ths
19 dd43edf4 ths
 moveq 4,r3
20 dd43edf4 ths
 btstq 1,r3
21 dd43edf4 ths
 test_cc 0 1 0 0
22 dd43edf4 ths
23 dd43edf4 ths
 moveq -1,r3
24 dd43edf4 ths
 btstq 31,r3
25 dd43edf4 ths
 test_cc 1 0 0 0
26 dd43edf4 ths
27 dd43edf4 ths
 move.d 0x5a67f19f,r3
28 dd43edf4 ths
 btstq 12,r3
29 dd43edf4 ths
 test_cc 1 0 0 0
30 dd43edf4 ths
31 dd43edf4 ths
 move.d 0xda67f19f,r3
32 dd43edf4 ths
 move.d 29,r4
33 dd43edf4 ths
 btst r4,r3
34 dd43edf4 ths
 test_cc 0 0 0 0
35 dd43edf4 ths
36 dd43edf4 ths
 move.d 0xda67f19f,r3
37 dd43edf4 ths
 move.d 32,r4
38 dd43edf4 ths
 btst r4,r3
39 dd43edf4 ths
 test_cc 1 0 0 0
40 dd43edf4 ths
41 dd43edf4 ths
 move.d 0xda67f191,r3
42 dd43edf4 ths
 move.d 33,r4
43 dd43edf4 ths
 btst r4,r3
44 dd43edf4 ths
 test_cc 0 0 0 0
45 dd43edf4 ths
46 dd43edf4 ths
 moveq -1,r3
47 dd43edf4 ths
 moveq 0,r4
48 dd43edf4 ths
 btst r4,r3
49 dd43edf4 ths
 test_cc 1 0 0 0
50 dd43edf4 ths
51 dd43edf4 ths
 moveq 2,r3
52 dd43edf4 ths
 moveq 1,r4
53 dd43edf4 ths
 btst r4,r3
54 dd43edf4 ths
 test_cc 1 0 0 0
55 dd43edf4 ths
56 dd43edf4 ths
 moveq -1,r3
57 dd43edf4 ths
 moveq 31,r4
58 dd43edf4 ths
 btst r4,r3
59 dd43edf4 ths
 test_cc 1 0 0 0
60 dd43edf4 ths
61 dd43edf4 ths
 moveq 4,r3
62 dd43edf4 ths
 btstq 1,r3
63 dd43edf4 ths
 test_cc 0 1 0 0
64 dd43edf4 ths
65 dd43edf4 ths
 moveq -1,r3
66 dd43edf4 ths
 moveq 15,r4
67 dd43edf4 ths
 btst r4,r3
68 dd43edf4 ths
 test_cc 1 0 0 0
69 dd43edf4 ths
70 dd43edf4 ths
 move.d 0x5a67f19f,r3
71 dd43edf4 ths
 moveq 12,r4
72 dd43edf4 ths
 btst r4,r3
73 dd43edf4 ths
 test_cc 1 0 0 0
74 dd43edf4 ths
75 dd43edf4 ths
 move.d 0x5a678000,r3
76 dd43edf4 ths
 moveq 11,r4
77 dd43edf4 ths
 btst r4,r3
78 dd43edf4 ths
 test_cc 0 1 0 0
79 dd43edf4 ths
80 dd43edf4 ths
 move.d 0x5a67f19f,r3
81 dd43edf4 ths
 btst r3,r3
82 dd43edf4 ths
 test_cc 0 0 0 0
83 dd43edf4 ths
84 dd43edf4 ths
 move.d 0x1111,r3
85 dd43edf4 ths
 checkr3 1111
86 dd43edf4 ths
87 bebb39d4 edgar_igl
 ; check that X gets cleared and that only the NZ flags are touched.
88 bebb39d4 edgar_igl
 move.d	0xff, $r0
89 bebb39d4 edgar_igl
 move $r0, $ccs
90 bebb39d4 edgar_igl
 btst r3,r3
91 bebb39d4 edgar_igl
 move $ccs, $r0
92 ff56ff7a edgar_igl
 and.d 0xff, $r0
93 bebb39d4 edgar_igl
 cmp.d	0xe3, $r0
94 bebb39d4 edgar_igl
 test_cc 0 1 0 0
95 bebb39d4 edgar_igl
96 dd43edf4 ths
 quit