summaryrefslogtreecommitdiffstats
path: root/qemu/tests/tcg/mips/mips32-dspr2
diff options
context:
space:
mode:
Diffstat (limited to 'qemu/tests/tcg/mips/mips32-dspr2')
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/Makefile71
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/absq_s_qb.c35
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/addqh_ph.c30
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/addqh_r_ph.c30
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/addqh_r_w.c34
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/addqh_w.c34
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/addu_ph.c33
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/addu_s_ph.c33
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/adduh_qb.c30
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/adduh_r_qb.c30
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/append.c30
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/balign.c30
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/cmpgdu_eq_qb.c37
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/cmpgdu_le_qb.c37
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/cmpgdu_lt_qb.c37
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/dpa_w_ph.c44
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/dpaqx_s_w_ph.c79
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/dpaqx_sa_w_ph.c57
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/dpax_w_ph.c44
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/dps_w_ph.c44
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/dpsqx_s_w_ph.c54
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/dpsqx_sa_w_ph.c53
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/dpsx_w_ph.c27
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/mul_ph.c47
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/mul_s_ph.c62
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/mulq_rs_w.c36
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/mulq_s_ph.c40
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/mulq_s_w.c36
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/mulsa_w_ph.c29
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/mulsaq_s_w_ph.c29
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/precr_qb_ph.c21
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/precr_sra_ph_w.c32
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/precr_sra_r_ph_w.c32
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/prepend.c30
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/shra_qb.c30
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/shra_r_qb.c30
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/shrav_qb.c32
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/shrav_r_qb.c32
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/shrl_ph.c20
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/shrlv_ph.c21
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/subqh_ph.c21
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/subqh_r_ph.c21
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/subqh_r_w.c21
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/subqh_w.c21
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/subu_ph.c40
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/subu_s_ph.c25
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/subuh_qb.c21
-rw-r--r--qemu/tests/tcg/mips/mips32-dspr2/subuh_r_qb.c32
48 files changed, 0 insertions, 1694 deletions
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/Makefile b/qemu/tests/tcg/mips/mips32-dspr2/Makefile
deleted file mode 100644
index ed19581c7..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/Makefile
+++ /dev/null
@@ -1,71 +0,0 @@
--include ../../config-host.mak
-
-CROSS=mips64el-unknown-linux-gnu-
-
-SIM=qemu-mipsel
-SIM_FLAGS=-cpu 74Kf
-
-CC = $(CROSS)gcc
-CFLAGS = -mabi=32 -march=mips32r2 -mgp32 -mdspr2 -static
-
-TESTCASES = absq_s_qb.tst
-TESTCASES += addqh_ph.tst
-TESTCASES += addqh_r_ph.tst
-TESTCASES += addqh_r_w.tst
-TESTCASES += addqh_w.tst
-TESTCASES += adduh_qb.tst
-TESTCASES += adduh_r_qb.tst
-TESTCASES += addu_ph.tst
-TESTCASES += addu_s_ph.tst
-TESTCASES += append.tst
-TESTCASES += balign.tst
-TESTCASES += cmpgdu_eq_qb.tst
-TESTCASES += cmpgdu_le_qb.tst
-TESTCASES += cmpgdu_lt_qb.tst
-TESTCASES += dpaqx_sa_w_ph.tst
-TESTCASES += dpa_w_ph.tst
-TESTCASES += dpax_w_ph.tst
-TESTCASES += dpaqx_s_w_ph.tst
-TESTCASES += dpsqx_sa_w_ph.tst
-TESTCASES += dpsqx_s_w_ph.tst
-TESTCASES += dps_w_ph.tst
-TESTCASES += dpsx_w_ph.tst
-TESTCASES += mul_ph.tst
-TESTCASES += mulq_rs_w.tst
-TESTCASES += mulq_s_ph.tst
-TESTCASES += mulq_s_w.tst
-TESTCASES += mulsaq_s_w_ph.tst
-TESTCASES += mulsa_w_ph.tst
-TESTCASES += mul_s_ph.tst
-TESTCASES += precr_qb_ph.tst
-TESTCASES += precr_sra_ph_w.tst
-TESTCASES += precr_sra_r_ph_w.tst
-TESTCASES += prepend.tst
-TESTCASES += shra_qb.tst
-TESTCASES += shra_r_qb.tst
-TESTCASES += shrav_qb.tst
-TESTCASES += shrav_r_qb.tst
-TESTCASES += shrl_ph.tst
-TESTCASES += shrlv_ph.tst
-TESTCASES += subqh_ph.tst
-TESTCASES += subqh_r_ph.tst
-TESTCASES += subqh_r_w.tst
-TESTCASES += subqh_w.tst
-TESTCASES += subuh_qb.tst
-TESTCASES += subuh_r_qb.tst
-TESTCASES += subu_ph.tst
-TESTCASES += subu_s_ph.tst
-
-all: $(TESTCASES)
-
-%.tst: %.c
- $(CC) $(CFLAGS) $< -o $@
-
-check: $(TESTCASES)
- @for case in $(TESTCASES); do \
- echo $(SIM) $(SIM_FLAGS) ./$$case;\
- $(SIM) $(SIM_FLAGS) ./$$case; \
- done
-
-clean:
- $(RM) -rf $(TESTCASES)
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/absq_s_qb.c b/qemu/tests/tcg/mips/mips32-dspr2/absq_s_qb.c
deleted file mode 100644
index af4683f30..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/absq_s_qb.c
+++ /dev/null
@@ -1,35 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int input, result, dsp;
- int hope;
-
- input = 0x701BA35E;
- hope = 0x701B5D5E;
-
- __asm
- ("absq_s.qb %0, %1\n\t"
- : "=r"(result)
- : "r"(input)
- );
- assert(result == hope);
-
-
- input = 0x801BA35E;
- hope = 0x7F1B5D5E;
-
- __asm
- ("absq_s.qb %0, %2\n\t"
- "rddsp %1\n\t"
- : "=r"(result), "=r"(dsp)
- : "r"(input)
- );
- dsp = dsp >> 20;
- dsp &= 0x01;
- assert(dsp == 1);
- assert(result == hope);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/addqh_ph.c b/qemu/tests/tcg/mips/mips32-dspr2/addqh_ph.c
deleted file mode 100644
index 921f0eaf3..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/addqh_ph.c
+++ /dev/null
@@ -1,30 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt;
- int result;
-
- rs = 0x706A13FE;
- rt = 0x13065174;
- result = 0x41B832B9;
- __asm
- ("addqh.ph %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rs), "r"(rt)
- );
- assert(rd == result);
-
- rs = 0x81000100;
- rt = 0xc2000100;
- result = 0xa1800100;
- __asm
- ("addqh.ph %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rs), "r"(rt)
- );
- assert(rd == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/addqh_r_ph.c b/qemu/tests/tcg/mips/mips32-dspr2/addqh_r_ph.c
deleted file mode 100644
index 213ba3725..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/addqh_r_ph.c
+++ /dev/null
@@ -1,30 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt;
- int result;
-
- rs = 0x706A13FE;
- rt = 0x13065174;
- result = 0x41B832B9;
- __asm
- ("addqh_r.ph %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rs), "r"(rt)
- );
- assert(rd == result);
-
- rs = 0x81010100;
- rt = 0xc2000100;
- result = 0xa1810100;
- __asm
- ("addqh_r.ph %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rs), "r"(rt)
- );
- assert(rd == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/addqh_r_w.c b/qemu/tests/tcg/mips/mips32-dspr2/addqh_r_w.c
deleted file mode 100644
index 75a75c50f..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/addqh_r_w.c
+++ /dev/null
@@ -1,34 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt;
- int result;
-
- rs = 0x00000010;
- rt = 0x00000001;
- result = 0x00000009;
-
- __asm
- ("addqh_r.w %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rs), "r"(rt)
- );
-
- assert(rd == result);
-
- rs = 0xFFFFFFFE;
- rt = 0x00000001;
- result = 0x00000000;
-
- __asm
- ("addqh_r.w %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rs), "r"(rt)
- );
-
- assert(rd == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/addqh_w.c b/qemu/tests/tcg/mips/mips32-dspr2/addqh_w.c
deleted file mode 100644
index de6926ebb..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/addqh_w.c
+++ /dev/null
@@ -1,34 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt;
- int result;
-
- rs = 0x00000010;
- rt = 0x00000001;
- result = 0x00000008;
-
- __asm
- ("addqh.w %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rs), "r"(rt)
- );
-
- assert(rd == result);
-
- rs = 0xFFFFFFFE;
- rt = 0x00000001;
- result = 0xFFFFFFFF;
-
- __asm
- ("addqh.w %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rs), "r"(rt)
- );
-
- assert(rd == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/addu_ph.c b/qemu/tests/tcg/mips/mips32-dspr2/addu_ph.c
deleted file mode 100644
index 1d7a25a2a..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/addu_ph.c
+++ /dev/null
@@ -1,33 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt;
- int dsp;
- int result;
-
- rs = 0x00FF00FF;
- rt = 0x00010001;
- result = 0x01000100;
- __asm
- ("addu.ph %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rs), "r"(rt)
- );
- assert(rd == result);
-
- rs = 0xFFFF1111;
- rt = 0x00020001;
- result = 0x00011112;
- __asm
- ("addu.ph %0, %2, %3\n\t"
- "rddsp %1\n\t"
- : "=r"(rd), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- assert(rd == result);
- assert(((dsp >> 20) & 0x01) == 1);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/addu_s_ph.c b/qemu/tests/tcg/mips/mips32-dspr2/addu_s_ph.c
deleted file mode 100644
index 979651bfc..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/addu_s_ph.c
+++ /dev/null
@@ -1,33 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt;
- int dsp;
- int result;
-
- rs = 0x00FE00FE;
- rt = 0x00020001;
- result = 0x010000FF;
- __asm
- ("addu_s.ph %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rs), "r"(rt)
- );
- assert(rd == result);
-
- rs = 0xFFFF1111;
- rt = 0x00020001;
- result = 0xFFFF1112;
- __asm
- ("addu_s.ph %0, %2, %3\n\t"
- "rddsp %1\n\t"
- : "=r"(rd), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- assert(rd == result);
- assert(((dsp >> 20) & 0x01) == 1);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/adduh_qb.c b/qemu/tests/tcg/mips/mips32-dspr2/adduh_qb.c
deleted file mode 100644
index a1f5d631b..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/adduh_qb.c
+++ /dev/null
@@ -1,30 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt;
- int result;
-
- rs = 0xFF0055AA;
- rt = 0x0113421B;
- result = 0x80094B62;
- __asm
- ("adduh.qb %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rs), "r"(rt)
- );
- assert(rd == result);
-
- rs = 0xFFFF0FFF;
- rt = 0x00010111;
- result = 0x7F800888;
- __asm
- ("adduh.qb %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rs), "r"(rt)
- );
- assert(rd == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/adduh_r_qb.c b/qemu/tests/tcg/mips/mips32-dspr2/adduh_r_qb.c
deleted file mode 100644
index 81e98c190..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/adduh_r_qb.c
+++ /dev/null
@@ -1,30 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt;
- int result;
-
- rs = 0xFF0055AA;
- rt = 0x01112211;
- result = 0x80093C5E;
- __asm
- ("adduh_r.qb %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rs), "r"(rt)
- );
- assert(rd == result);
-
- rs = 0xFFFF0FFF;
- rt = 0x00010111;
- result = 0x80800888;
- __asm
- ("adduh_r.qb %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rs), "r"(rt)
- );
- assert(rd == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/append.c b/qemu/tests/tcg/mips/mips32-dspr2/append.c
deleted file mode 100644
index 9a91e1650..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/append.c
+++ /dev/null
@@ -1,30 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rs, rt;
- int result;
-
- rs = 0xFF0055AA;
- rt = 0x0113421B;
- result = 0x02268436;
- __asm
- ("append %0, %1, 0x01\n\t"
- : "+r"(rt)
- : "r"(rs)
- );
- assert(rt == result);
-
- rs = 0xFFFF0FFF;
- rt = 0x00010111;
- result = 0x0010111F;
- __asm
- ("append %0, %1, 0x04\n\t"
- : "+r"(rt)
- : "r"(rs)
- );
- assert(rt == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/balign.c b/qemu/tests/tcg/mips/mips32-dspr2/balign.c
deleted file mode 100644
index 537cf0451..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/balign.c
+++ /dev/null
@@ -1,30 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rs, rt;
- int result;
-
- rs = 0xFF0055AA;
- rt = 0x0113421B;
- result = 0x13421BFF;
- __asm
- ("balign %0, %1, 0x01\n\t"
- : "+r"(rt)
- : "r"(rs)
- );
- assert(rt == result);
-
- rs = 0xFFFF0FFF;
- rt = 0x00010111;
- result = 0x11FFFF0F;
- __asm
- ("balign %0, %1, 0x03\n\t"
- : "+r"(rt)
- : "r"(rs)
- );
- assert(rt == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/cmpgdu_eq_qb.c b/qemu/tests/tcg/mips/mips32-dspr2/cmpgdu_eq_qb.c
deleted file mode 100644
index 2d6340d6f..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/cmpgdu_eq_qb.c
+++ /dev/null
@@ -1,37 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt;
- int dsp;
- int result;
-
- rs = 0x11777066;
- rt = 0x55AA70FF;
- result = 0x02;
- __asm
- ("cmpgdu.eq.qb %0, %2, %3\n\t"
- "rddsp %1\n\t"
- : "=r"(rd), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 24) & 0x0F;
- assert(rd == result);
- assert(dsp == result);
-
- rs = 0x11777066;
- rt = 0x11777066;
- result = 0x0F;
- __asm
- ("cmpgdu.eq.qb %0, %2, %3\n\t"
- "rddsp %1\n\t"
- : "=r"(rd), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 24) & 0x0F;
- assert(rd == result);
- assert(dsp == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/cmpgdu_le_qb.c b/qemu/tests/tcg/mips/mips32-dspr2/cmpgdu_le_qb.c
deleted file mode 100644
index a0ecdca2a..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/cmpgdu_le_qb.c
+++ /dev/null
@@ -1,37 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt;
- int dsp;
- int result;
-
- rs = 0x11777066;
- rt = 0x55AA70FF;
- result = 0x0F;
- __asm
- ("cmpgdu.le.qb %0, %2, %3\n\t"
- "rddsp %1\n\t"
- : "=r"(rd), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 24) & 0x0F;
- assert(rd == result);
- assert(dsp == result);
-
- rs = 0x11777066;
- rt = 0x11707066;
- result = 0x0B;
- __asm
- ("cmpgdu.le.qb %0, %2, %3\n\t"
- "rddsp %1\n\t"
- : "=r"(rd), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 24) & 0x0F;
- assert(rd == result);
- assert(dsp == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/cmpgdu_lt_qb.c b/qemu/tests/tcg/mips/mips32-dspr2/cmpgdu_lt_qb.c
deleted file mode 100644
index dba99e392..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/cmpgdu_lt_qb.c
+++ /dev/null
@@ -1,37 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt;
- int dsp;
- int result;
-
- rs = 0x11777066;
- rt = 0x55AA70FF;
- result = 0x0D;
- __asm
- ("cmpgdu.lt.qb %0, %2, %3\n\t"
- "rddsp %1\n\t"
- : "=r"(rd), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 24) & 0x0F;
- assert(rd == result);
- assert(dsp == result);
-
- rs = 0x11777066;
- rt = 0x11777066;
- result = 0x00;
- __asm
- ("cmpgdu.lt.qb %0, %2, %3\n\t"
- "rddsp %1\n\t"
- : "=r"(rd), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 24) & 0x0F;
- assert(rd == result);
- assert(dsp == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/dpa_w_ph.c b/qemu/tests/tcg/mips/mips32-dspr2/dpa_w_ph.c
deleted file mode 100644
index fae49f10e..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/dpa_w_ph.c
+++ /dev/null
@@ -1,44 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rs, rt;
- int ach = 5, acl = 5;
- int resulth, resultl;
-
- rs = 0x00FF00FF;
- rt = 0x00010002;
- resulth = 0x05;
- resultl = 0x0302;
- __asm
- ("mthi %0, $ac1\n\t"
- "mtlo %1, $ac1\n\t"
- "dpa.w.ph $ac1, %2, %3\n\t"
- "mfhi %0, $ac1\n\t"
- "mflo %1, $ac1\n\t"
- : "+r"(ach), "+r"(acl)
- : "r"(rs), "r"(rt)
- );
- assert(ach == resulth);
- assert(acl == resultl);
-
- ach = 6, acl = 7;
- rs = 0xFFFF00FF;
- rt = 0xFFFF0002;
- resulth = 0x06;
- resultl = 0x206;
- __asm
- ("mthi %0, $ac1\n\t"
- "mtlo %1, $ac1\n\t"
- "dpa.w.ph $ac1, %2, %3\n\t"
- "mfhi %0, $ac1\n\t"
- "mflo %1, $ac1\n\t"
- : "+r"(ach), "+r"(acl)
- : "r"(rs), "r"(rt)
- );
- assert(ach == resulth);
- assert(acl == resultl);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/dpaqx_s_w_ph.c b/qemu/tests/tcg/mips/mips32-dspr2/dpaqx_s_w_ph.c
deleted file mode 100644
index ce8783024..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/dpaqx_s_w_ph.c
+++ /dev/null
@@ -1,79 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rs, rt, dsp;
- int ach = 5, acl = 5;
- int resulth, resultl, resultdsp;
-
- rs = 0x800000FF;
- rt = 0x00018000;
- resulth = 0x05;
- resultl = 0x80000202;
- resultdsp = 0x01;
- __asm
- ("mthi %0, $ac1\n\t"
- "mtlo %1, $ac1\n\t"
- "dpaqx_s.w.ph $ac1, %3, %4\n\t"
- "mfhi %0, $ac1\n\t"
- "mflo %1, $ac1\n\t"
- "rddsp %2\n\t"
- : "+r"(ach), "+r"(acl), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 17) & 0x01;
- assert(dsp == resultdsp);
- assert(ach == resulth);
- assert(acl == resultl);
-
- ach = 5;
- acl = 5;
- rs = 0x00FF00FF;
- rt = 0x00010002;
- resulth = 0x05;
- resultl = 0x05FF;
- /***********************************************************
- * Because of we set outflag at last time, although this
- * time we set nothing, but it is stay the last time value.
- **********************************************************/
- resultdsp = 0x01;
- __asm
- ("mthi %0, $ac1\n\t"
- "mtlo %1, $ac1\n\t"
- "dpaqx_s.w.ph $ac1, %3, %4\n\t"
- "mfhi %0, $ac1\n\t"
- "mflo %1, $ac1\n\t"
- "rddsp %2\n\t"
- : "+r"(ach), "+r"(acl), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 17) & 0x01;
- assert(dsp == resultdsp);
- assert(ach == resulth);
- assert(acl == resultl);
-
- ach = 5;
- acl = 5;
- rs = 0x800000FF;
- rt = 0x00028000;
- resulth = 0x05;
- resultl = 0x80000400;
- resultdsp = 0x01;
- __asm
- ("mthi %0, $ac1\n\t"
- "mtlo %1, $ac1\n\t"
- "dpaqx_s.w.ph $ac1, %3, %4\n\t"
- "mfhi %0, $ac1\n\t"
- "mflo %1, $ac1\n\t"
- "rddsp %2\n\t"
- : "+r"(ach), "+r"(acl), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 17) & 0x01;
- assert(dsp == resultdsp);
- assert(ach == resulth);
- assert(acl == resultl);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/dpaqx_sa_w_ph.c b/qemu/tests/tcg/mips/mips32-dspr2/dpaqx_sa_w_ph.c
deleted file mode 100644
index d551d64ae..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/dpaqx_sa_w_ph.c
+++ /dev/null
@@ -1,57 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rs, rt, dsp;
- int ach, acl;
- int resulth, resultl, resultdsp;
-
- ach = 0x00000005;
- acl = 0x00000005;
- rs = 0x00FF00FF;
- rt = 0x00010002;
- resulth = 0x00;
- resultl = 0x7FFFFFFF;
- resultdsp = 0x01;
- dsp = 0;
- __asm
- ("wrdsp %2\n\t"
- "mthi %0, $ac1\n\t"
- "mtlo %1, $ac1\n\t"
- "dpaqx_sa.w.ph $ac1, %3, %4\n\t"
- "mfhi %0, $ac1\n\t"
- "mflo %1, $ac1\n\t"
- "rddsp %2\n\t"
- : "+r"(ach), "+r"(acl), "+r"(dsp)
- : "r"(rs), "r"(rt)
- );
- assert(dsp >> (16 + 1) == resultdsp);
- assert(ach == resulth);
- assert(acl == resultl);
-
- ach = 0x00000009;
- acl = 0x0000000B;
- rs = 0x800000FF;
- rt = 0x00018000;
- resulth = 0x00;
- resultl = 0x7FFFFFFF;
- resultdsp = 0x01;
- dsp = 0;
- __asm
- ("wrdsp %2\n\t"
- "mthi %0, $ac1\n\t"
- "mtlo %1, $ac1\n\t"
- "dpaqx_sa.w.ph $ac1, %3, %4\n\t"
- "mfhi %0, $ac1\n\t"
- "mflo %1, $ac1\n\t"
- "rddsp %2\n\t"
- : "+r"(ach), "+r"(acl), "+r"(dsp)
- : "r"(rs), "r"(rt)
- );
- assert(dsp >> (16 + 1) == resultdsp);
- assert(ach == resulth);
- assert(acl == resultl);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/dpax_w_ph.c b/qemu/tests/tcg/mips/mips32-dspr2/dpax_w_ph.c
deleted file mode 100644
index 514797cfd..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/dpax_w_ph.c
+++ /dev/null
@@ -1,44 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rs, rt;
- int ach = 5, acl = 5;
- int resulth, resultl;
-
- rs = 0x00FF00FF;
- rt = 0x00010002;
- resulth = 0x05;
- resultl = 0x0302;
- __asm
- ("mthi %0, $ac1\n\t"
- "mtlo %1, $ac1\n\t"
- "dpax.w.ph $ac1, %2, %3\n\t"
- "mfhi %0, $ac1\n\t"
- "mflo %1, $ac1\n\t"
- : "+r"(ach), "+r"(acl)
- : "r"(rs), "r"(rt)
- );
- assert(ach == resulth);
- assert(acl == resultl);
-
- ach = 6, acl = 7;
- rs = 0xFFFF00FF;
- rt = 0xFFFF0002;
- resulth = 0x05;
- resultl = 0xFFFFFF06;
- __asm
- ("mthi %0, $ac1\n\t"
- "mtlo %1, $ac1\n\t"
- "dpax.w.ph $ac1, %2, %3\n\t"
- "mfhi %0, $ac1\n\t"
- "mflo %1, $ac1\n\t"
- : "+r"(ach), "+r"(acl)
- : "r"(rs), "r"(rt)
- );
- assert(ach == resulth);
- assert(acl == resultl);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/dps_w_ph.c b/qemu/tests/tcg/mips/mips32-dspr2/dps_w_ph.c
deleted file mode 100644
index f51f9b9d1..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/dps_w_ph.c
+++ /dev/null
@@ -1,44 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rs, rt;
- int ach = 5, acl = 5;
- int resulth, resultl;
-
- rs = 0x00FF00FF;
- rt = 0x00010002;
- resulth = 0x04;
- resultl = 0xFFFFFD08;
- __asm
- ("mthi %0, $ac1\n\t"
- "mtlo %1, $ac1\n\t"
- "dps.w.ph $ac1, %2, %3\n\t"
- "mfhi %0, $ac1\n\t"
- "mflo %1, $ac1\n\t"
- : "+r"(ach), "+r"(acl)
- : "r"(rs), "r"(rt)
- );
- assert(ach == resulth);
- assert(acl == resultl);
-
- ach = 6, acl = 7;
- rs = 0xFFFF00FF;
- rt = 0xFFFF0002;
- resulth = 0x05;
- resultl = 0xFFFFFE08;
- __asm
- ("mthi %0, $ac1\n\t"
- "mtlo %1, $ac1\n\t"
- "dps.w.ph $ac1, %2, %3\n\t"
- "mfhi %0, $ac1\n\t"
- "mflo %1, $ac1\n\t"
- : "+r"(ach), "+r"(acl)
- : "r"(rs), "r"(rt)
- );
- assert(ach == resulth);
- assert(acl == resultl);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/dpsqx_s_w_ph.c b/qemu/tests/tcg/mips/mips32-dspr2/dpsqx_s_w_ph.c
deleted file mode 100644
index e40543fd8..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/dpsqx_s_w_ph.c
+++ /dev/null
@@ -1,54 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rs, rt, dsp;
- int ach = 5, acl = 5;
- int resulth, resultl, resultdsp;
-
- rs = 0xBC0123AD;
- rt = 0x01643721;
- resulth = 0x00000005;
- resultl = 0x1CE5E09B;
- resultdsp = 0x00;
- __asm
- ("mthi %0, $ac1\n\t"
- "mtlo %1, $ac1\n\t"
- "dpsqx_s.w.ph $ac1, %3, %4\n\t"
- "mfhi %0, $ac1\n\t"
- "mflo %1, $ac1\n\t"
- "rddsp %2\n\t"
- : "+r"(ach), "+r"(acl), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 17) & 0x01;
- assert(dsp == resultdsp);
- assert(ach == resulth);
- assert(acl == resultl);
-
- ach = 0x99F13005;
- acl = 0x51730062;
- rs = 0x80008000;
- rt = 0x80008000;
-
- resulth = 0x99F13004;
- resultl = 0x51730064;
- resultdsp = 0x01;
- __asm
- ("mthi %0, $ac1\n\t"
- "mtlo %1, $ac1\n\t"
- "dpsqx_s.w.ph $ac1, %3, %4\n\t"
- "mfhi %0, $ac1\n\t"
- "mflo %1, $ac1\n\t"
- "rddsp %2\n\t"
- : "+r"(ach), "+r"(acl), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 17) & 0x01;
- assert(dsp == resultdsp);
- assert(ach == resulth);
- assert(acl == resultl);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/dpsqx_sa_w_ph.c b/qemu/tests/tcg/mips/mips32-dspr2/dpsqx_sa_w_ph.c
deleted file mode 100644
index 7da278eac..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/dpsqx_sa_w_ph.c
+++ /dev/null
@@ -1,53 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rs, rt, dsp;
- int ach = 5, acl = 5;
- int resulth, resultl, resultdsp;
-
- rs = 0xBC0123AD;
- rt = 0x01643721;
- resulth = 0x00;
- resultl = 0x7FFFFFFF;
- resultdsp = 0x01;
- __asm
- ("mthi %0, $ac1\n\t"
- "mtlo %1, $ac1\n\t"
- "dpsqx_sa.w.ph $ac1, %3, %4\n\t"
- "mfhi %0, $ac1\n\t"
- "mflo %1, $ac1\n\t"
- "rddsp %2\n\t"
- : "+r"(ach), "+r"(acl), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 17) & 0x01;
- assert(dsp == resultdsp);
- assert(ach == resulth);
- assert(acl == resultl);
-
- ach = 0x8c0b354A;
- acl = 0xbbc02249;
- rs = 0x800023AD;
- rt = 0x01648000;
- resulth = 0xffffffff;
- resultl = 0x80000000;
- resultdsp = 0x01;
- __asm
- ("mthi %0, $ac1\n\t"
- "mtlo %1, $ac1\n\t"
- "dpsqx_sa.w.ph $ac1, %3, %4\n\t"
- "mfhi %0, $ac1\n\t"
- "mflo %1, $ac1\n\t"
- "rddsp %2\n\t"
- : "+r"(ach), "+r"(acl), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 17) & 0x01;
- assert(dsp == resultdsp);
- assert(ach == resulth);
- assert(acl == resultl);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/dpsx_w_ph.c b/qemu/tests/tcg/mips/mips32-dspr2/dpsx_w_ph.c
deleted file mode 100644
index bb49a4031..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/dpsx_w_ph.c
+++ /dev/null
@@ -1,27 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rs, rt;
- int ach = 5, acl = 5;
- int resulth, resultl;
-
- rs = 0xBC0123AD;
- rt = 0x01643721;
- resulth = 0x05;
- resultl = 0xE72F050;
- __asm
- ("mthi %0, $ac1\n\t"
- "mtlo %1, $ac1\n\t"
- "dpsx.w.ph $ac1, %2, %3\n\t"
- "mfhi %0, $ac1\n\t"
- "mflo %1, $ac1\n\t"
- : "+r"(ach), "+r"(acl)
- : "r"(rs), "r"(rt)
- );
- assert(ach == resulth);
- assert(acl == resultl);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/mul_ph.c b/qemu/tests/tcg/mips/mips32-dspr2/mul_ph.c
deleted file mode 100644
index c7e9d60d1..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/mul_ph.c
+++ /dev/null
@@ -1,47 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt, dsp;
- int result, resultdsp;
-
- rs = 0x03FB1234;
- rt = 0x0BCC4321;
- result = 0xF504F4B4;
- resultdsp = 1;
-
- __asm
- ("mul.ph %0, %2, %3\n\t"
- "rddsp %1\n\t"
- : "=r"(rd), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 21) & 0x01;
- assert(rd == result);
- assert(dsp == resultdsp);
-
- dsp = 0;
- __asm
- ("wrdsp %0\n\t"
- :
- : "r"(dsp)
- );
-
- rs = 0x00210010;
- rt = 0x00110005;
- result = 0x2310050;
- resultdsp = 0;
-
- __asm
- ("mul.ph %0, %2, %3\n\t"
- "rddsp %1\n\t"
- : "=r"(rd), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 21) & 0x01;
- assert(rd == result);
- assert(dsp == resultdsp);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/mul_s_ph.c b/qemu/tests/tcg/mips/mips32-dspr2/mul_s_ph.c
deleted file mode 100644
index 33da110de..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/mul_s_ph.c
+++ /dev/null
@@ -1,62 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt, dsp;
- int result, resultdsp;
-
- rs = 0x03FB1234;
- rt = 0x0BCC4321;
- result = 0x7fff7FFF;
- resultdsp = 1;
-
- __asm
- ("mul_s.ph %0, %2, %3\n\t"
- "rddsp %1\n\t"
- : "=r"(rd), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 21) & 0x01;
- assert(rd == result);
- assert(dsp == resultdsp);
-
- rs = 0x7fffff00;
- rt = 0xff007fff;
- result = 0x80008000;
- resultdsp = 1;
-
- __asm
- ("mul_s.ph %0, %2, %3\n\t"
- "rddsp %1\n\t"
- : "=r"(rd), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 21) & 0x01;
- assert(rd == result);
- assert(dsp == resultdsp);
-
- dsp = 0;
- __asm
- ("wrdsp %0\n\t"
- :
- : "r"(dsp)
- );
-
- rs = 0x00320001;
- rt = 0x00210002;
- result = 0x06720002;
- resultdsp = 0;
-
- __asm
- ("mul_s.ph %0, %2, %3\n\t"
- "rddsp %1\n\t"
- : "=r"(rd), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 21) & 0x01;
- assert(rd == result);
- assert(dsp == resultdsp);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/mulq_rs_w.c b/qemu/tests/tcg/mips/mips32-dspr2/mulq_rs_w.c
deleted file mode 100644
index 7ba633bc1..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/mulq_rs_w.c
+++ /dev/null
@@ -1,36 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt, dsp;
- int result, resultdsp;
-
- rs = 0x80001234;
- rt = 0x80004321;
- result = 0x7FFFAAAB;
-
- __asm
- ("mulq_rs.w %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rs), "r"(rt)
- );
- assert(rd == result);
-
- rs = 0x80000000;
- rt = 0x80000000;
- result = 0x7FFFFFFF;
- resultdsp = 1;
-
- __asm
- ("mulq_rs.w %0, %2, %3\n\t"
- "rddsp %1\n\t"
- : "=r"(rd), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 21) & 0x01;
- assert(rd == result);
- assert(dsp == resultdsp);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/mulq_s_ph.c b/qemu/tests/tcg/mips/mips32-dspr2/mulq_s_ph.c
deleted file mode 100644
index 00e015542..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/mulq_s_ph.c
+++ /dev/null
@@ -1,40 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt, dsp;
- int result, resultdsp;
-
- rs = 0x80000000;
- rt = 0x0ffc0000;
- result = 0xF0040000;
- resultdsp = 0;
-
- __asm
- ("mulq_s.ph %0, %2, %3\n\t"
- "rddsp %1\n\t"
- : "=r"(rd), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 21) & 0x01;
- assert(rd == result);
- assert(dsp == resultdsp);
-
- rs = 0x80001234;
- rt = 0x80004321;
- result = 0x7FFF098B;
- resultdsp = 1;
-
- __asm
- ("mulq_s.ph %0, %2, %3\n\t"
- "rddsp %1\n\t"
- : "=r"(rd), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 21) & 0x01;
- assert(rd == result);
- assert(dsp == resultdsp);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/mulq_s_w.c b/qemu/tests/tcg/mips/mips32-dspr2/mulq_s_w.c
deleted file mode 100644
index 9c2be06cc..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/mulq_s_w.c
+++ /dev/null
@@ -1,36 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt, dsp;
- int result, resultdsp;
-
- rs = 0x80001234;
- rt = 0x80004321;
- result = 0x7FFFAAAB;
-
- __asm
- ("mulq_s.w %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rs), "r"(rt)
- );
- assert(rd == result);
-
- rs = 0x80000000;
- rt = 0x80000000;
- result = 0x7FFFFFFF;
- resultdsp = 1;
-
- __asm
- ("mulq_s.w %0, %2, %3\n\t"
- "rddsp %1\n\t"
- : "=r"(rd), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 21) & 0x01;
- assert(rd == result);
- assert(dsp == resultdsp);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/mulsa_w_ph.c b/qemu/tests/tcg/mips/mips32-dspr2/mulsa_w_ph.c
deleted file mode 100644
index a6940939c..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/mulsa_w_ph.c
+++ /dev/null
@@ -1,29 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rs, rt, ach, acl;
- int resulth, resultl;
-
- ach = 0x05;
- acl = 0x00BBDDCC;
- rs = 0x80001234;
- rt = 0x80004321;
- resulth = 0x05;
- resultl = 0x3BF5E918;
-
- __asm
- ("mthi %0, $ac1\n\t"
- "mtlo %1, $ac1\n\t"
- "mulsa.w.ph $ac1, %2, %3\n\t"
- "mfhi %0, $ac1\n\t"
- "mflo %1, $ac1\n\t"
- : "+r"(ach), "+r"(acl)
- : "r"(rs), "r"(rt)
- );
- assert(ach == resulth);
- assert(acl == resultl);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/mulsaq_s_w_ph.c b/qemu/tests/tcg/mips/mips32-dspr2/mulsaq_s_w_ph.c
deleted file mode 100644
index 06c91a43e..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/mulsaq_s_w_ph.c
+++ /dev/null
@@ -1,29 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rs, rt, ach, acl;
- int resulth, resultl;
-
- ach = 0x05;
- acl = 0x00BBDDCC;
- rs = 0x80001234;
- rt = 0x80004321;
- resulth = 0x05;
- resultl = 0x772ff463;
-
- __asm
- ("mthi %0, $ac1\n\t"
- "mtlo %1, $ac1\n\t"
- "mulsaq_s.w.ph $ac1, %2, %3\n\t"
- "mfhi %0, $ac1\n\t"
- "mflo %1, $ac1\n\t"
- : "+r"(ach), "+r"(acl)
- : "r"(rs), "r"(rt)
- );
- assert(ach == resulth);
- assert(acl == resultl);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/precr_qb_ph.c b/qemu/tests/tcg/mips/mips32-dspr2/precr_qb_ph.c
deleted file mode 100644
index 3a2b3fde0..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/precr_qb_ph.c
+++ /dev/null
@@ -1,21 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt;
- int result;
-
- rs = 0x12345678;
- rt = 0x87654321;
- result = 0x34786521;
-
- __asm
- ("precr.qb.ph %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rs), "r"(rt)
- );
- assert(result == rd);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/precr_sra_ph_w.c b/qemu/tests/tcg/mips/mips32-dspr2/precr_sra_ph_w.c
deleted file mode 100644
index 5c9baab03..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/precr_sra_ph_w.c
+++ /dev/null
@@ -1,32 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rs, rt;
- int result;
-
- rs = 0x12345678;
- rt = 0x87654321;
- result = 0x43215678;
-
- __asm
- ("precr_sra.ph.w %0, %1, 0x00\n\t"
- : "+r"(rt)
- : "r"(rs)
- );
- assert(result == rt);
-
- rs = 0x12345678;
- rt = 0x87654321;
- result = 0xFFFF0000;
-
- __asm
- ("precr_sra.ph.w %0, %1, 0x1F\n\t"
- : "+r"(rt)
- : "r"(rs)
- );
- assert(result == rt);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/precr_sra_r_ph_w.c b/qemu/tests/tcg/mips/mips32-dspr2/precr_sra_r_ph_w.c
deleted file mode 100644
index 6474a108c..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/precr_sra_r_ph_w.c
+++ /dev/null
@@ -1,32 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rs, rt;
- int result;
-
- rs = 0x12345678;
- rt = 0x87654321;
- result = 0x43215678;
-
- __asm
- ("precr_sra_r.ph.w %0, %1, 0x00\n\t"
- : "+r"(rt)
- : "r"(rs)
- );
- assert(result == rt);
-
- rs = 0x12345678;
- rt = 0x87654321;
- result = 0xFFFF0000;
-
- __asm
- ("precr_sra_r.ph.w %0, %1, 0x1F\n\t"
- : "+r"(rt)
- : "r"(rs)
- );
- assert(result == rt);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/prepend.c b/qemu/tests/tcg/mips/mips32-dspr2/prepend.c
deleted file mode 100644
index f6bcd47b2..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/prepend.c
+++ /dev/null
@@ -1,30 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rs, rt;
- int result;
-
- rs = 0x12345678;
- rt = 0x87654321;
- result = 0x87654321;
- __asm
- ("prepend %0, %1, 0x00\n\t"
- : "+r"(rt)
- : "r"(rs)
- );
- assert(rt == result);
-
- rs = 0x12345678;
- rt = 0x87654321;
- result = 0xACF10ECA;
- __asm
- ("prepend %0, %1, 0x0F\n\t"
- : "+r"(rt)
- : "r"(rs)
- );
- assert(rt == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/shra_qb.c b/qemu/tests/tcg/mips/mips32-dspr2/shra_qb.c
deleted file mode 100644
index 48193de87..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/shra_qb.c
+++ /dev/null
@@ -1,30 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rt;
- int result;
-
- rt = 0x12345678;
- result = 0x02060A0F;
-
- __asm
- ("shra.qb %0, %1, 0x03\n\t"
- : "=r"(rd)
- : "r"(rt)
- );
- assert(rd == result);
-
- rt = 0x87654321;
- result = 0xF00C0804;
-
- __asm
- ("shra.qb %0, %1, 0x03\n\t"
- : "=r"(rd)
- : "r"(rt)
- );
- assert(rd == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/shra_r_qb.c b/qemu/tests/tcg/mips/mips32-dspr2/shra_r_qb.c
deleted file mode 100644
index 29afa0e4b..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/shra_r_qb.c
+++ /dev/null
@@ -1,30 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rt;
- int result;
-
- rt = 0x12345678;
- result = 0x02070B0F;
-
- __asm
- ("shra_r.qb %0, %1, 0x03\n\t"
- : "=r"(rd)
- : "r"(rt)
- );
- assert(rd == result);
-
- rt = 0x87654321;
- result = 0xF10D0804;
-
- __asm
- ("shra_r.qb %0, %1, 0x03\n\t"
- : "=r"(rd)
- : "r"(rt)
- );
- assert(rd == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/shrav_qb.c b/qemu/tests/tcg/mips/mips32-dspr2/shrav_qb.c
deleted file mode 100644
index b21e1b7ca..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/shrav_qb.c
+++ /dev/null
@@ -1,32 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt;
- int result;
-
- rs = 0x03;
- rt = 0x12345678;
- result = 0x02060A0F;
-
- __asm
- ("shrav.qb %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rt), "r"(rs)
- );
- assert(rd == result);
-
- rs = 0x03;
- rt = 0x87654321;
- result = 0xF00C0804;
-
- __asm
- ("shrav.qb %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rt), "r"(rs)
- );
- assert(rd == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/shrav_r_qb.c b/qemu/tests/tcg/mips/mips32-dspr2/shrav_r_qb.c
deleted file mode 100644
index 9ea8aa0cb..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/shrav_r_qb.c
+++ /dev/null
@@ -1,32 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt;
- int result;
-
- rs = 0x03;
- rt = 0x12345678;
- result = 0x02070B0F;
-
- __asm
- ("shrav_r.qb %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rt), "r"(rs)
- );
- assert(rd == result);
-
- rs = 0x03;
- rt = 0x87654321;
- result = 0xF10D0804;
-
- __asm
- ("shrav_r.qb %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rt), "r"(rs)
- );
- assert(rd == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/shrl_ph.c b/qemu/tests/tcg/mips/mips32-dspr2/shrl_ph.c
deleted file mode 100644
index 724b9a7a4..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/shrl_ph.c
+++ /dev/null
@@ -1,20 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rt;
- int result;
-
- rt = 0x12345678;
- result = 0x009102B3;
-
- __asm
- ("shrl.ph %0, %1, 0x05\n\t"
- : "=r"(rd)
- : "r"(rt)
- );
- assert(rd == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/shrlv_ph.c b/qemu/tests/tcg/mips/mips32-dspr2/shrlv_ph.c
deleted file mode 100644
index ac79aa69a..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/shrlv_ph.c
+++ /dev/null
@@ -1,21 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt;
- int result;
-
- rs = 0x05;
- rt = 0x12345678;
- result = 0x009102B3;
-
- __asm
- ("shrlv.ph %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rt), "r"(rs)
- );
- assert(rd == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/subqh_ph.c b/qemu/tests/tcg/mips/mips32-dspr2/subqh_ph.c
deleted file mode 100644
index dbc096734..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/subqh_ph.c
+++ /dev/null
@@ -1,21 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt;
- int result;
-
- rs = 0x12345678;
- rt = 0x87654321;
- result = 0x456709AB;
-
- __asm
- ("subqh.ph %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rs), "r"(rt)
- );
- assert(rd == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/subqh_r_ph.c b/qemu/tests/tcg/mips/mips32-dspr2/subqh_r_ph.c
deleted file mode 100644
index 24ef0f1ae..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/subqh_r_ph.c
+++ /dev/null
@@ -1,21 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt;
- int result;
-
- rs = 0x12345678;
- rt = 0x87654321;
- result = 0x456809AC;
-
- __asm
- ("subqh_r.ph %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rs), "r"(rt)
- );
- assert(rd == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/subqh_r_w.c b/qemu/tests/tcg/mips/mips32-dspr2/subqh_r_w.c
deleted file mode 100644
index d460f8630..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/subqh_r_w.c
+++ /dev/null
@@ -1,21 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt;
- int result;
-
- rs = 0x12345678;
- rt = 0x87654321;
- result = 0x456789AC;
-
- __asm
- ("subqh_r.w %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rs), "r"(rt)
- );
- assert(rd == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/subqh_w.c b/qemu/tests/tcg/mips/mips32-dspr2/subqh_w.c
deleted file mode 100644
index 42be3deb8..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/subqh_w.c
+++ /dev/null
@@ -1,21 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt;
- int result;
-
- rs = 0x12345678;
- rt = 0x87654321;
- result = 0x456789AB;
-
- __asm
- ("subqh.w %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rs), "r"(rt)
- );
- assert(rd == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/subu_ph.c b/qemu/tests/tcg/mips/mips32-dspr2/subu_ph.c
deleted file mode 100644
index 0d39a017c..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/subu_ph.c
+++ /dev/null
@@ -1,40 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt, dsp;
- int result, resultdsp;
-
- rs = 0x87654321;
- rt = 0x11111111;
- result = 0x76543210;
- resultdsp = 0x00;
-
- __asm
- ("subu.ph %0, %2, %3\n\t"
- "rddsp %1\n\t"
- : "=r"(rd), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 20) & 0x01;
- assert(dsp == resultdsp);
- assert(rd == result);
-
- rs = 0x87654321;
- rt = 0x12345678;
- result = 0x7531ECA9;
- resultdsp = 0x01;
-
- __asm
- ("subu.ph %0, %2, %3\n\t"
- "rddsp %1\n\t"
- : "=r"(rd), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 20) & 0x01;
- assert(dsp == resultdsp);
- assert(rd == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/subu_s_ph.c b/qemu/tests/tcg/mips/mips32-dspr2/subu_s_ph.c
deleted file mode 100644
index 8e4da4f3e..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/subu_s_ph.c
+++ /dev/null
@@ -1,25 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt, dsp;
- int result, resultdsp;
-
- rs = 0x87654321;
- rt = 0x12345678;
- result = 0x75310000;
- resultdsp = 0x01;
-
- __asm
- ("subu_s.ph %0, %2, %3\n\t"
- "rddsp %1\n\t"
- : "=r"(rd), "=r"(dsp)
- : "r"(rs), "r"(rt)
- );
- dsp = (dsp >> 20) & 0x01;
- assert(dsp == resultdsp);
- assert(rd == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/subuh_qb.c b/qemu/tests/tcg/mips/mips32-dspr2/subuh_qb.c
deleted file mode 100644
index 92cfc764b..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/subuh_qb.c
+++ /dev/null
@@ -1,21 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt;
- int result;
-
- rs = 0x12345678;
- rt = 0x87654321;
- result = 0xC5E7092B;
-
- __asm
- ("subuh.qb %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rs), "r"(rt)
- );
- assert(rd == result);
-
- return 0;
-}
diff --git a/qemu/tests/tcg/mips/mips32-dspr2/subuh_r_qb.c b/qemu/tests/tcg/mips/mips32-dspr2/subuh_r_qb.c
deleted file mode 100644
index dac81d47d..000000000
--- a/qemu/tests/tcg/mips/mips32-dspr2/subuh_r_qb.c
+++ /dev/null
@@ -1,32 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int rd, rs, rt;
- int result;
-
- rs = 0x12345678;
- rt = 0x87654321;
- result = 0xC6E80A2C;
-
- __asm
- ("subuh_r.qb %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rs), "r"(rt)
- );
- assert(rd == result);
-
- rs = 0xBEFC292A;
- rt = 0x9205C1B4;
- result = 0x167cb4bb;
-
- __asm
- ("subuh_r.qb %0, %1, %2\n\t"
- : "=r"(rd)
- : "r"(rs), "r"(rt)
- );
- assert(rd == result);
-
- return 0;
-}