repo.or.cz
/
qemu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
qemu-error: add {error, warn}_report_once_cond
[qemu.git]
/
tests
/
tcg
/
mips
/
mips64-dsp
/
cmpu_lt_qb.c
blob
adb75eed526c813ddfb0c42fce4f2b0150a496fe
1
#include
"io.h"
2
3
int
main
(
void
)
4
{
5
long long
rs
,
rt
;
6
long long
dsp
;
7
long long
result
;
8
9
rs
=
0x11777066
;
10
rt
=
0x55AA70FF
;
11
result
=
0x0D
;
12
__asm
13
(
"cmpu.lt.qb %1, %2
\n\t
"
14
"rddsp %0
\n\t
"
15
:
"=r"
(
dsp
)
16
:
"r"
(
rs
),
"r"
(
rt
)
17
);
18
dsp
= (
dsp
>>
24
) &
0x0F
;
19
if
(
dsp
!=
result
) {
20
printf
(
"cmpu.lt.qb wrong
\n
"
);
21
22
return
-
1
;
23
}
24
25
rs
=
0x11777066
;
26
rt
=
0x11777066
;
27
result
=
0x00
;
28
__asm
29
(
"cmpu.lt.qb %1, %2
\n\t
"
30
"rddsp %0
\n\t
"
31
:
"=r"
(
dsp
)
32
:
"r"
(
rs
),
"r"
(
rt
)
33
);
34
dsp
= (
dsp
>>
24
) &
0x0F
;
35
if
(
dsp
!=
result
) {
36
printf
(
"cmpu.lt.qb wrong
\n
"
);
37
38
return
-
1
;
39
}
40
41
return
0
;
42
}