Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add qemu 2.4.0
[kvmfornfv.git]
/
qemu
/
tests
/
tcg
/
mips
/
mips32-dsp
/
precequ_ph_qbl.c
diff --git a/qemu/tests/tcg/mips/mips32-dsp/precequ_ph_qbl.c
b/qemu/tests/tcg/mips/mips32-dsp/precequ_ph_qbl.c
new file mode 100644
(file)
index 0000000..
63b7a95
--- /dev/null
+++ b/
qemu/tests/tcg/mips/mips32-dsp/precequ_ph_qbl.c
@@ -0,0
+1,20
@@
+#include<stdio.h>
+#include<assert.h>
+
+int main()
+{
+ int rd, rt;
+ int result;
+
+ rt = 0x87654321;
+ result = 0x43803280;
+
+ __asm
+ ("precequ.ph.qbl %0, %1\n\t"
+ : "=r"(rd)
+ : "r"(rt)
+ );
+ assert(result == rd);
+
+ return 0;
+}