Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (656 Bytes)

1
# mach: crisv0 crisv3 crisv8 crisv10 crisv32
2
# output: 2\n2\nffff\nffffffff\n1f\nffffffe0\n78134452\n0\n
3

    
4
 .include "testutils.inc"
5
 start
6
 moveq -1,r3
7
 andq 2,r3
8
 test_move_cc 0 0 0 0
9
 checkr3 2
10

    
11
 moveq 2,r3
12
 andq -1,r3
13
 test_move_cc 0 0 0 0
14
 checkr3 2
15

    
16
 move.d 0xffff,r3
17
 andq -1,r3
18
 test_move_cc 0 0 0 0
19
 checkr3 ffff
20

    
21
 moveq -1,r3
22
 andq -1,r3
23
 test_move_cc 1 0 0 0
24
 checkr3 ffffffff
25

    
26
 moveq -1,r3
27
 andq 31,r3
28
 test_move_cc 0 0 0 0
29
 checkr3 1f
30

    
31
 moveq -1,r3
32
 andq -32,r3
33
 test_move_cc 1 0 0 0
34
 checkr3 ffffffe0
35

    
36
 move.d 0x78134457,r3
37
 andq -14,r3
38
 test_move_cc 0 0 0 0
39
 checkr3 78134452
40

    
41
 moveq 0,r3
42
 andq -14,r3
43
 test_move_cc 0 1 0 0
44
 checkr3 0
45

    
46
 quit