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
/
mips64-dsp
/
packrl_pw.c
blob
780741883426fcc52171ae5674660e1ed22f7a89
1
#include
"io.h"
2
3
int
main
(
void
)
4
{
5
long long
rd
,
rs
,
rt
;
6
long long
res
;
7
8
rs
=
0x1234567887654321
;
9
rt
=
0xabcdef9812345678
;
10
11
res
=
0x87654321abcdef98
;
12
13
__asm
14
(
"packrl.pw %0, %1, %2
\n\t
"
15
:
"=r"
(
rd
)
16
:
"r"
(
rs
),
"r"
(
rt
)
17
);
18
if
(
rd
!=
res
) {
19
printf
(
"packrl.pw error
\n
"
);
20
return
-
1
;
21
}
22
23
return
0
;
24
}