repo.or.cz
/
qemu
/
armbru.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libqtest: Inline g_assert_no_errno()
[qemu/armbru.git]
/
tests
/
tcg
/
mips
/
mips64-dspr2
/
prepend.c
blob
4ab083e969192b03d77c1f3e3ec01490c87d7817
1
#include
"io.h"
2
3
int
main
(
void
)
4
{
5
long long
rs
,
rt
;
6
long long
result
;
7
8
rs
=
0x12345678
;
9
rt
=
0x87654321
;
10
result
=
0xFFFFFFFF87654321
;
11
__asm
12
(
"prepend %0, %1, 0x00
\n\t
"
13
:
"+r"
(
rt
)
14
:
"r"
(
rs
)
15
);
16
if
(
rt
!=
result
) {
17
printf
(
"prepend error
\n
"
);
18
return
-
1
;
19
}
20
21
rs
=
0x12345678
;
22
rt
=
0x87654321
;
23
result
=
0xFFFFFFFFACF10ECA
;
24
__asm
25
(
"prepend %0, %1, 0x0F
\n\t
"
26
:
"+r"
(
rt
)
27
:
"r"
(
rs
)
28
);
29
if
(
rt
!=
result
) {
30
printf
(
"prepend error
\n
"
);
31
return
-
1
;
32
}
33
34
return
0
;
35
}