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
virtio-serial: make flow control explicit in virtio-console
[qemu/agraf.git]
/
tests
/
tcg
/
mips
/
mips64-dspr2
/
balign.c
blob
7fbe815782984869866d20bcd9582c5c5a75d2ba
1
#include
"io.h"
2
3
int
main
(
void
)
4
{
5
long long
rs
,
rt
;
6
long long
result
;
7
8
rs
=
0xFF0055AA
;
9
rt
=
0x0113421B
;
10
result
=
0x13421BFF
;
11
__asm
12
(
"balign %0, %1, 0x01
\n\t
"
13
:
"+r"
(
rt
)
14
:
"r"
(
rs
)
15
);
16
if
(
rt
!=
result
) {
17
printf
(
"balign error
\n
"
);
18
return
-
1
;
19
}
20
21
rs
=
0xFFFF0FFF
;
22
rt
=
0x00010111
;
23
result
=
0x11FFFF0F
;
24
__asm
25
(
"balign %0, %1, 0x03
\n\t
"
26
:
"+r"
(
rt
)
27
:
"r"
(
rs
)
28
);
29
if
(
rt
!=
result
) {
30
printf
(
"balign error
\n
"
);
31
return
-
1
;
32
}
33
34
return
0
;
35
}