aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tcg/mips/mips64-dsp/repl_qb.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcg/mips/mips64-dsp/repl_qb.c')
-rw-r--r--tests/tcg/mips/mips64-dsp/repl_qb.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/tcg/mips/mips64-dsp/repl_qb.c b/tests/tcg/mips/mips64-dsp/repl_qb.c
new file mode 100644
index 00000000..592feaec
--- /dev/null
+++ b/tests/tcg/mips/mips64-dsp/repl_qb.c
@@ -0,0 +1,19 @@
+#include "io.h"
+
+int main(void)
+{
+ long long rd, result;
+
+ result = 0xFFFFFFFFBFBFBFBF;
+ __asm
+ ("repl.qb %0, 0xBF\n\t"
+ : "=r"(rd)
+ );
+ if (rd != result) {
+ printf("repl.qb wrong\n");
+
+ return -1;
+ }
+
+ return 0;
+}