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
Merge tag 'qemu-macppc-20230206' of https://github.com/mcayland/qemu into staging
[qemu.git]
/
tests
/
tcg
/
mips
/
user
/
ase
/
dsp
/
test_dsp_r1_replv_qb.c
blob
dd1271fedff0ffb1c1a301ba8e7fb431aa2e80a5
1
#include<stdio.h>
2
#include<assert.h>
3
4
int
main
()
5
{
6
int
rd
,
rt
;
7
int
result
;
8
9
rt
=
0x12345678
;
10
result
=
0x78787878
;
11
__asm
12
(
"replv.qb %0, %1
\n\t
"
13
:
"=r"
(
rd
)
14
:
"r"
(
rt
)
15
);
16
assert
(
rd
==
result
);
17
18
return
0
;
19
}