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
/
mips
/
mips32-dsp
/
cmpgu_le_qb.c
blob
65d0813c3b198443148d4ab54f9563dfcbf0db1e
1
#include<stdio.h>
2
#include<assert.h>
3
4
int
main
()
5
{
6
int
rd
,
rs
,
rt
;
7
int
result
;
8
9
rs
=
0x11777066
;
10
rt
=
0x55AA70FF
;
11
result
=
0x0F
;
12
__asm
13
(
"cmpgu.le.qb %0, %1, %2
\n\t
"
14
:
"=r"
(
rd
)
15
:
"r"
(
rs
),
"r"
(
rt
)
16
);
17
18
assert
(
rd
==
result
);
19
20
rs
=
0x11777066
;
21
rt
=
0x11766066
;
22
result
=
0x09
;
23
__asm
24
(
"cmpgu.le.qb %0, %1, %2
\n\t
"
25
:
"=r"
(
rd
)
26
:
"r"
(
rs
),
"r"
(
rt
)
27
);
28
assert
(
rd
==
result
);
29
30
return
0
;
31
}