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
/
mips32-dsp
/
absq_s_ph.c
blob
aa8411202e208598538496dd00fc64e685fa98e7
1
#include<stdio.h>
2
#include<assert.h>
3
4
5
int
main
()
6
{
7
int
rd
,
rt
;
8
int
result
;
9
10
rt
=
0x10017EFD
;
11
result
=
0x10017EFD
;
12
13
__asm
14
(
"absq_s.ph %0, %1
\n\t
"
15
:
"=r"
(
rd
)
16
:
"r"
(
rt
)
17
);
18
assert
(
rd
==
result
);
19
20
rt
=
0x8000A536
;
21
result
=
0x7FFF5ACA
;
22
23
__asm
24
(
"absq_s.ph %0, %1
\n\t
"
25
:
"=r"
(
rd
)
26
:
"r"
(
rt
)
27
);
28
assert
(
rd
==
result
);
29
30
return
0
;
31
}