summary refs log tree commit diff stats
path: root/tests/tcg/mips/mips32-dsp/repl_qb.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcg/mips/mips32-dsp/repl_qb.c')
-rw-r--r--tests/tcg/mips/mips32-dsp/repl_qb.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/tcg/mips/mips32-dsp/repl_qb.c b/tests/tcg/mips/mips32-dsp/repl_qb.c
new file mode 100644
index 0000000000..6631393ea1
--- /dev/null
+++ b/tests/tcg/mips/mips32-dsp/repl_qb.c
@@ -0,0 +1,16 @@
+#include<stdio.h>
+#include<assert.h>
+
+int main()
+{
+    int rd, result;
+
+    result = 0xBFBFBFBF;
+    __asm
+        ("repl.qb %0, 0xBF\n\t"
+         : "=r"(rd)
+        );
+    assert(rd == result);
+
+    return 0;
+}