summaryrefslogtreecommitdiffstats
path: root/src/tests/tcg/mips/mips32-dsp/preceu_ph_qbla.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/tcg/mips/mips32-dsp/preceu_ph_qbla.c')
-rw-r--r--src/tests/tcg/mips/mips32-dsp/preceu_ph_qbla.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/tests/tcg/mips/mips32-dsp/preceu_ph_qbla.c b/src/tests/tcg/mips/mips32-dsp/preceu_ph_qbla.c
new file mode 100644
index 0000000..021f21a
--- /dev/null
+++ b/src/tests/tcg/mips/mips32-dsp/preceu_ph_qbla.c
@@ -0,0 +1,20 @@
+#include<stdio.h>
+#include<assert.h>
+
+int main()
+{
+ int rd, rt;
+ int result;
+
+ rt = 0x87654321;
+ result = 0x00870043;
+
+ __asm
+ ("preceu.ph.qbla %0, %1\n\t"
+ : "=r"(rd)
+ : "r"(rt)
+ );
+ assert(result == rd);
+
+ return 0;
+}
OpenPOWER on IntegriCloud