repo.or.cz
/
qemu
/
agraf.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
s390-ccw.img: replace while loop with a disabled wait on s390 bios
[qemu/agraf.git]
/
tests
/
tcg
/
cris
/
check_cmpxc.s
blob
b237a931752f7529bbad944b6b88ce030d6d12f9
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
3
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
10
11
moveq
2
,
r3
12
cmps.w
0xffff
,
r3
13
test_cc
0 0 0 1
14
checkr3
2
15
16
moveq
2
,
r3
17
cmpu.
b
0xff
,
r3
18
test_cc
1 0 0 1
19
checkr3
2
20
21
moveq
2
,
r3
22
move.d
0xffffffff
,
r4
23
cmpu.w
-
1
,
r3
24
test_cc
1 0 0 1
25
checkr3
2
26
27
move.d
0xffff
,
r3
28
cmpu.
b
-
1
,
r3
29
test_cc
0 0 0 0
30
checkr3 ffff
31
32
move.d
0xffff
,
r3
33
cmpu.w
-
1
,
r3
34
test_cc
0 1 0 0
35
checkr3 ffff
36
37
move.d
0xffff
,
r3
38
cmps.
b
0xff
,
r3
39
test_cc
0 0 0 1
40
checkr3 ffff
41
42
move.d
0xffff
,
r3
43
cmps.w
0xffff
,
r3
44
test_cc
0 0 0 1
45
checkr3 ffff
46
47
moveq
-
1
,
r3
48
cmps.
b
0xff
,
r3
49
test_cc
0 1 0 0
50
checkr3 ffffffff
51
52
moveq
-
1
,
r3
53
cmps.w
0xff
,
r3
54
test_cc
1 0 0 0
55
checkr3 ffffffff
56
57
moveq
-
1
,
r3
58
cmps.w
0xffff
,
r3
59
test_cc
0 1 0 0
60
checkr3 ffffffff
61
62
move.d
0x78134452
,
r3
63
cmpu.
b
0x89
,
r3
64
test_cc
0 0 0 0
65
checkr3
78134452
66
67
move.d
0x78134452
,
r3
68
cmps.
b
0x89
,
r3
69
test_cc
0 0 0 1
70
checkr3
78134452
71
72
move.d
0x78134452
,
r3
73
cmpu.w
0xf789
,
r3
74
test_cc
0 0 0 0
75
checkr3
78134452
76
77
move.d
0x78134452
,
r3
78
cmps.w
0xf789
,
r3
79
test_cc
0 0 0 1
80
checkr3
78134452
81
82
move.d
0x4452
,
r3
83
cmps.w
0x8002
,
r3
84
test_cc
0 0 0 1
85
checkr3
4452
86
87
move.d
0x80000032
,
r3
88
cmpu.w
0x764
,
r3
89
test_cc
0 0 1 0
90
checkr3
80000032
91
92
quit