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
PPC: Fix rldcl
[qemu/agraf.git]
/
tests
/
tcg
/
mips
/
mips32-dsp
/
cmpgu_lt_qb.c
blob
7dddad98532c8f5d71954329a45aed62b9317a33
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
=
0x0D
;
12
__asm
13
(
"cmpgu.lt.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
=
0x00
;
23
__asm
24
(
"cmpgu.lt.qb %0, %1, %2
\n\t
"
25
:
"=r"
(
rd
)
26
:
"r"
(
rs
),
"r"
(
rt
)
27
);
28
assert
(
rd
==
result
);
29
30
return
0
;
31
}