summaryrefslogtreecommitdiffstats
path: root/qemu/tests/tcg/openrisc
diff options
context:
space:
mode:
authorRajithaY <rajithax.yerrumsetty@intel.com>2017-04-25 03:31:15 -0700
committerRajitha Yerrumchetty <rajithax.yerrumsetty@intel.com>2017-05-22 06:48:08 +0000
commitbb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch)
treeca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/tests/tcg/openrisc
parenta14b48d18a9ed03ec191cf16b162206998a895ce (diff)
Adding qemu as a submodule of KVMFORNFV
This Patch includes the changes to add qemu as a submodule to kvmfornfv repo and make use of the updated latest qemu for the execution of all testcase Change-Id: I1280af507a857675c7f81d30c95255635667bdd7 Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/tests/tcg/openrisc')
-rw-r--r--qemu/tests/tcg/openrisc/Makefile71
-rw-r--r--qemu/tests/tcg/openrisc/test_add.c43
-rw-r--r--qemu/tests/tcg/openrisc/test_addc.c40
-rw-r--r--qemu/tests/tcg/openrisc/test_addi.c33
-rw-r--r--qemu/tests/tcg/openrisc/test_addic.c35
-rw-r--r--qemu/tests/tcg/openrisc/test_and_or.c65
-rw-r--r--qemu/tests/tcg/openrisc/test_bf.c47
-rw-r--r--qemu/tests/tcg/openrisc/test_bnf.c51
-rw-r--r--qemu/tests/tcg/openrisc/test_div.c54
-rw-r--r--qemu/tests/tcg/openrisc/test_divu.c34
-rw-r--r--qemu/tests/tcg/openrisc/test_extx.c78
-rw-r--r--qemu/tests/tcg/openrisc/test_fx.c57
-rw-r--r--qemu/tests/tcg/openrisc/test_j.c26
-rw-r--r--qemu/tests/tcg/openrisc/test_jal.c26
-rw-r--r--qemu/tests/tcg/openrisc/test_lf_add.c39
-rw-r--r--qemu/tests/tcg/openrisc/test_lf_div.c37
-rw-r--r--qemu/tests/tcg/openrisc/test_lf_eqs.c88
-rw-r--r--qemu/tests/tcg/openrisc/test_lf_ges.c88
-rw-r--r--qemu/tests/tcg/openrisc/test_lf_gts.c86
-rw-r--r--qemu/tests/tcg/openrisc/test_lf_les.c88
-rw-r--r--qemu/tests/tcg/openrisc/test_lf_lts.c92
-rw-r--r--qemu/tests/tcg/openrisc/test_lf_mul.c22
-rw-r--r--qemu/tests/tcg/openrisc/test_lf_nes.c89
-rw-r--r--qemu/tests/tcg/openrisc/test_lf_rem.c32
-rw-r--r--qemu/tests/tcg/openrisc/test_lf_sub.c35
-rw-r--r--qemu/tests/tcg/openrisc/test_logic.c105
-rw-r--r--qemu/tests/tcg/openrisc/test_lx.c84
-rw-r--r--qemu/tests/tcg/openrisc/test_movhi.c31
-rw-r--r--qemu/tests/tcg/openrisc/test_mul.c61
-rw-r--r--qemu/tests/tcg/openrisc/test_muli.c48
-rw-r--r--qemu/tests/tcg/openrisc/test_mulu.c48
-rw-r--r--qemu/tests/tcg/openrisc/test_sfeq.c43
-rw-r--r--qemu/tests/tcg/openrisc/test_sfeqi.c39
-rw-r--r--qemu/tests/tcg/openrisc/test_sfges.c44
-rw-r--r--qemu/tests/tcg/openrisc/test_sfgesi.c40
-rw-r--r--qemu/tests/tcg/openrisc/test_sfgeu.c44
-rw-r--r--qemu/tests/tcg/openrisc/test_sfgeui.c41
-rw-r--r--qemu/tests/tcg/openrisc/test_sfgts.c45
-rw-r--r--qemu/tests/tcg/openrisc/test_sfgtsi.c41
-rw-r--r--qemu/tests/tcg/openrisc/test_sfgtu.c43
-rw-r--r--qemu/tests/tcg/openrisc/test_sfgtui.c42
-rw-r--r--qemu/tests/tcg/openrisc/test_sfles.c26
-rw-r--r--qemu/tests/tcg/openrisc/test_sflesi.c39
-rw-r--r--qemu/tests/tcg/openrisc/test_sfleu.c43
-rw-r--r--qemu/tests/tcg/openrisc/test_sfleui.c39
-rw-r--r--qemu/tests/tcg/openrisc/test_sflts.c43
-rw-r--r--qemu/tests/tcg/openrisc/test_sfltsi.c39
-rw-r--r--qemu/tests/tcg/openrisc/test_sfltu.c43
-rw-r--r--qemu/tests/tcg/openrisc/test_sfltui.c39
-rw-r--r--qemu/tests/tcg/openrisc/test_sfne.c43
-rw-r--r--qemu/tests/tcg/openrisc/test_sfnei.c39
-rw-r--r--qemu/tests/tcg/openrisc/test_sub.c35
52 files changed, 0 insertions, 2583 deletions
diff --git a/qemu/tests/tcg/openrisc/Makefile b/qemu/tests/tcg/openrisc/Makefile
deleted file mode 100644
index 7e6588876..000000000
--- a/qemu/tests/tcg/openrisc/Makefile
+++ /dev/null
@@ -1,71 +0,0 @@
--include ../../config-host.mak
-
-CROSS = or32-linux-
-
-SIM = qemu-or32
-
-CC = $(CROSS)gcc
-
-TESTCASES = test_add.tst
-TESTCASES += test_sub.tst
-TESTCASES += test_addc.tst
-TESTCASES += test_addi.tst
-TESTCASES += test_addic.tst
-TESTCASES += test_and_or.tst
-TESTCASES += test_bf.tst
-TESTCASES += test_bnf.tst
-TESTCASES += test_div.tst
-TESTCASES += test_divu.tst
-TESTCASES += test_extx.tst
-TESTCASES += test_fx.tst
-TESTCASES += test_jal.tst
-TESTCASES += test_j.tst
-TESTCASES += test_lf_div.tst
-TESTCASES += test_lf_eqs.tst
-TESTCASES += test_lf_ges.tst
-TESTCASES += test_lf_gts.tst
-TESTCASES += test_lf_les.tst
-TESTCASES += test_lf_lts.tst
-TESTCASES += test_lf_mul.tst
-TESTCASES += test_lf_nes.tst
-TESTCASES += test_lf_rem.tst
-TESTCASES += test_lf_sub.tst
-TESTCASES += test_lf_add.tst
-TESTCASES += test_logic.tst
-TESTCASES += test_lx.tst
-TESTCASES += test_movhi.tst
-TESTCASES += test_mul.tst
-TESTCASES += test_mulu.tst
-TESTCASES += test_muli.tst
-TESTCASES += test_sfeq.tst
-TESTCASES += test_sfeqi.tst
-TESTCASES += test_sfges.tst
-TESTCASES += test_sfgesi.tst
-TESTCASES += test_sfgeu.tst
-TESTCASES += test_sfgeui.tst
-TESTCASES += test_sfgts.tst
-TESTCASES += test_sfgtsi.tst
-TESTCASES += test_sfgtu.tst
-TESTCASES += test_sfgtui.tst
-TESTCASES += test_sfles.tst
-TESTCASES += test_sflesi.tst
-TESTCASES += test_sfleu.tst
-TESTCASES += test_sfleui.tst
-TESTCASES += test_sflts.tst
-TESTCASES += test_sfltsi.tst
-TESTCASES += test_sfltu.tst
-TESTCASES += test_sfltui.tst
-TESTCASES += test_sfne.tst
-TESTCASES += test_sfnei.tst
-
-all: $(TESTCASES)
-
-%.tst: %.c
- $(CC) -static $< -o $@
-
-
-check: $(TESTCASES)
- @for case in $(TESTCASES); do $(SIM) $$case; echo $$case pass!; sleep 0.2; done
-
-clean:
- $(RM) -rf $(TESTCASES)
diff --git a/qemu/tests/tcg/openrisc/test_add.c b/qemu/tests/tcg/openrisc/test_add.c
deleted file mode 100644
index 3d23592e7..000000000
--- a/qemu/tests/tcg/openrisc/test_add.c
+++ /dev/null
@@ -1,43 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b, d;
- int result;
-
- a = 0x100;
- b = 0x100;
- result = 0x200;
- __asm
- ("l.add %0, %0, %1\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("add error\n");
- return -1;
- }
-
- a = 0xffff;
- b = 0x1;
- result = 0x10000;
- __asm
- ("l.add %0, %0, %1\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("add error\n");
- return -1;
- }
-
- a = 0x7fffffff;
- b = 0x1;
- __asm
- ("l.add %0, %1, %2\n\t"
- : "=r"(d)
- : "r"(b), "r"(a)
- );
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_addc.c b/qemu/tests/tcg/openrisc/test_addc.c
deleted file mode 100644
index a8f756a69..000000000
--- a/qemu/tests/tcg/openrisc/test_addc.c
+++ /dev/null
@@ -1,40 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b, c;
- int result;
-
- b = 0x01;
- c = 0xffffffff;
- result = 0;
- __asm
- ("l.add r1, r1, r0\n\t" /* clear carry */
- "l.addc %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("first addc error\n");
- return -1;
- }
-
- b = 0x01;
- c = 0xffffffff;
- result = 0x80000001;
- __asm
- ("l.add r1, r1, r0\n\t" /* clear carry */
- "l.addc %0, %1, %2\n\t"
- "l.movhi %2, 0x7fff\n\t"
- "l.ori %2, %2, 0xffff\n\t"
- "l.addc %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("addc error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_addi.c b/qemu/tests/tcg/openrisc/test_addi.c
deleted file mode 100644
index bbf5a5ffa..000000000
--- a/qemu/tests/tcg/openrisc/test_addi.c
+++ /dev/null
@@ -1,33 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b;
- int result;
-
- b = 0x01;
- result = 0x00;
- __asm
- ("l.addi %0, %1, 0xffff\n\t"
- : "=r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("addi error\n\t");
- return -1;
- }
-
- b = 0x010000;
- result = 0xffff;
- __asm
- ("l.addi %0, %1, 0xffff\n\t"
- : "=r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("addi error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_addic.c b/qemu/tests/tcg/openrisc/test_addic.c
deleted file mode 100644
index 857aaa133..000000000
--- a/qemu/tests/tcg/openrisc/test_addic.c
+++ /dev/null
@@ -1,35 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b, c;
- int result;
-
- a = 1;
- result = 0x0;
- __asm
- ("l.add r1, r1, r0\n\t" /* clear carry */
- "l.addic %0, %0, 0xffff\n\t"
- : "+r"(a)
- );
- if (a != result) {
- printf("first addic error\n");
- return -1;
- }
-
- a = -1;
- result = 0x201;
- __asm
- ("l.add r1, r1, r0\n\t" /* clear carry */
- "l.addic %0, %0, 0x1\n\t"
- "l.ori %0, r0, 0x100\n\t"
- "l.addic %0, %0, 0x100\n\t"
- : "+r"(a)
- );
- if (a != result) {
- printf("second addic error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_and_or.c b/qemu/tests/tcg/openrisc/test_and_or.c
deleted file mode 100644
index 810d868c7..000000000
--- a/qemu/tests/tcg/openrisc/test_and_or.c
+++ /dev/null
@@ -1,65 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b, c;
- int result;
-
- b = 0x2;
- c = 0x1;
- result = 0;
- __asm
- ("l.and %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("and error\n");
- return -1;
- }
-
- result = 0x2;
- __asm
- ("l.andi %0, %1, 0x3\n\t"
- : "=r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("andi error %x\n", a);
- return -1;
- }
-
- result = 0x3;
- __asm
- ("l.or %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("or error\n");
- return -1;
- }
-
- result = 0x3;
- __asm
- ("l.xor %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("xor error\n");
- return -1;
- }
-
- __asm
- ("l.xori %0, %1, 0x1\n\t"
- : "=r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("xori error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_bf.c b/qemu/tests/tcg/openrisc/test_bf.c
deleted file mode 100644
index 79f3fb99a..000000000
--- a/qemu/tests/tcg/openrisc/test_bf.c
+++ /dev/null
@@ -1,47 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b, c;
- int result;
-
- a = 0;
- b = 10;
- c = 11;
- result = 0x2;
- __asm
- ("1:\n\t"
- "l.addi %1, %1, 0x01\n\t"
- "l.addi %0, %0, 0x01\n\t"
- "l.sfeq %1, %2\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("sfeq error\n");
- return -1;
- }
-
- a = 0x00;
- b = 0x11;
- c = 0x11;
- result = 0x01;
- __asm
- ("1:\n\t"
- "l.addi %1, %1, 0x01\n\t"
- "l.addi %0, %0, 0x01\n\t"
- "l.sfeq %1, %2\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("sfeq error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_bnf.c b/qemu/tests/tcg/openrisc/test_bnf.c
deleted file mode 100644
index f716215f1..000000000
--- a/qemu/tests/tcg/openrisc/test_bnf.c
+++ /dev/null
@@ -1,51 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b;
- int result;
-
- a = 0;
- b = 0;
- result = 0x3;
- __asm
- ("l.sfeqi %1, 0x0\n\t"
- "l.bnf 1f\n\t"
- "l.nop\n\t"
- "\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "\n\t"
- "1:\n\t"
- "l.addi %0, %0, 0x1\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("l.bnf error\n");
- return -1;
- }
-
- a = 0;
- b = 0;
- result = 1;
- __asm
- ("l.sfeqi %1, 0x1\n\t"
- "l.bnf 1f\n\t"
- "l.nop\n\t"
- "\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "\n\t"
- "1:\n\t"
- "l.addi %0, %0, 0x1\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("l.bnf error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_div.c b/qemu/tests/tcg/openrisc/test_div.c
deleted file mode 100644
index 9b65f6e67..000000000
--- a/qemu/tests/tcg/openrisc/test_div.c
+++ /dev/null
@@ -1,54 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b, c;
- int result;
-
- b = 0x120;
- c = 0x4;
- result = 0x48;
- __asm
- ("l.div %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("div error\n");
- return -1;
- }
-
- result = 0x4;
- __asm
- ("l.div %0, %1, %0\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("div error\n");
- return -1;
- }
-
- b = 0xffffffff;
- c = 0x80000000;
- result = 0;
- __asm
- ("l.div %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("div error\n");
- return -1;
- }
-
- b = 0x80000000;
- c = 0xffffffff;
- __asm
- ("l.div %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_divu.c b/qemu/tests/tcg/openrisc/test_divu.c
deleted file mode 100644
index bff9e3ea5..000000000
--- a/qemu/tests/tcg/openrisc/test_divu.c
+++ /dev/null
@@ -1,34 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b, c;
- int result;
-
- b = 0x120;
- c = 0x4;
- result = 0x48;
-
- __asm
- ("l.divu %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("divu error\n");
- return -1;
- }
-
- result = 0x4;
- __asm
- ("l.divu %0, %1, %0\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("divu error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_extx.c b/qemu/tests/tcg/openrisc/test_extx.c
deleted file mode 100644
index 09221484a..000000000
--- a/qemu/tests/tcg/openrisc/test_extx.c
+++ /dev/null
@@ -1,78 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b;
- int result;
-
- b = 0x83;
- result = 0xffffff83;
- __asm
- ("l.extbs %0, %1\n\t"
- : "=r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("extbs error\n");
- return -1;
- }
-
- result = 0x83;
- __asm
- ("l.extbz %0, %1\n\t"
- : "=r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("extbz error\n");
- return -1;
- }
-
- b = 0x8083;
- result = 0xffff8083;
- __asm
- ("l.exths %0, %1\n\t"
- : "=r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("exths error\n");
- return -1;
- }
-
- result = 0x8083;
- __asm
- ("l.exthz %0, %1\n\t"
- : "=r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("exthz error\n");
- return -1;
- }
-
- b = 0x11;
- result = 0x11;
- __asm
- ("l.extws %0, %1\n\t"
- : "=r"(a)
- : "r"(b)
- );
-
- if (a != result) {
- printf("extws error\n");
- return -1;
- }
-
- __asm
- ("l.extwz %0, %1\n\t"
- : "=r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("extwz error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_fx.c b/qemu/tests/tcg/openrisc/test_fx.c
deleted file mode 100644
index df86000d9..000000000
--- a/qemu/tests/tcg/openrisc/test_fx.c
+++ /dev/null
@@ -1,57 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b;
- int result;
-
- b = 0x123;
- result = 1;
- __asm
- ("l.ff1 %0, %1\n\t"
- : "=r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("ff1 error\n");
- return -1;
- }
-
- b = 0x0;
- result = 0;
- __asm
- ("l.ff1 %0, %1\n\t"
- : "=r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("ff1 error\n");
- return -1;
- }
-
- b = 0x123;
- result = 9;
- __asm
- ("l.fl1 %0, %1\n\t"
- : "=r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("fl1 error\n");
- return -1;
- }
-
- b = 0x0;
- result = 0;
- __asm
- ("l.fl1 %0, %1\n\t"
- : "=r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("fl1 error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_j.c b/qemu/tests/tcg/openrisc/test_j.c
deleted file mode 100644
index 9ddf8bfbb..000000000
--- a/qemu/tests/tcg/openrisc/test_j.c
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a;
- int result;
-
- a = 0;
- result = 2;
- __asm
- ("l.addi %0, %0, 1\n\t"
- "l.j j\n\t"
- "l.nop\n\t"
- "l.addi %0, %0, 1\n\t"
- "l.nop\n\t"
- "j:\n\t"
- "l.addi %0, %0, 1\n\t"
- : "+r"(a)
- );
- if (a != result) {
- printf("j error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_jal.c b/qemu/tests/tcg/openrisc/test_jal.c
deleted file mode 100644
index 7e2da4016..000000000
--- a/qemu/tests/tcg/openrisc/test_jal.c
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a;
- int result;
-
- a = 0;
- result = 2;
- __asm
- ("l.addi %0, %0, 1\n\t"
- "l.jal jal\n\t"
- "l.nop\n\t"
- "l.addi %0, %0, 1\n\t"
- "l.nop\n\t"
- "jal:\n\t"
- "l.addi %0, %0, 1\n\t"
- : "+r"(a)
- );
- if (a != result) {
- printf("jal error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_lf_add.c b/qemu/tests/tcg/openrisc/test_lf_add.c
deleted file mode 100644
index e00212dad..000000000
--- a/qemu/tests/tcg/openrisc/test_lf_add.c
+++ /dev/null
@@ -1,39 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- float a, b;
- float res2;
-
- a = 1.5;
- b = 2.5;
- res2 = 4.0;
- __asm
- ("lf.add.s %0, %0, %1\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != res2) {
- printf("lf.add.s error, %f\n", a);
- return -1;
- }
-
-/* double c, d;
- double res1;
-
- c = 1.5;
- d = 1.5;
- res1 = 3.00;
- __asm
- ("lf.add.d %0, %1, %2\n\t"
- : "+r"(c)
- : "r"(d)
- );
-
- if ((e - res1) > 0.002) {
- printf("lf.add.d error, %f\n", e - res1);
- return -1;
- }*/
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_lf_div.c b/qemu/tests/tcg/openrisc/test_lf_div.c
deleted file mode 100644
index 70b5d1c17..000000000
--- a/qemu/tests/tcg/openrisc/test_lf_div.c
+++ /dev/null
@@ -1,37 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- float a, b, c;
- float result;
-
- b = 1.5;
- c = 0.5;
- result = 3.0;
- __asm
- ("lf.div.s %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.div.s error\n");
- return -1;
- }
-
-/* double a, b, c, res;
-
- b = 0x80000000;
- c = 0x40;
- result = 0x2000000;
- __asm
- ("lf.div.d %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.div.d error\n");
- return -1;
- }*/
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_lf_eqs.c b/qemu/tests/tcg/openrisc/test_lf_eqs.c
deleted file mode 100644
index a176bd6fe..000000000
--- a/qemu/tests/tcg/openrisc/test_lf_eqs.c
+++ /dev/null
@@ -1,88 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, result;
- float b, c;
-
- a = 0x1;
- b = 122.5;
- c = 123.5;
- result = 0x3;
- __asm
- ("lfeqd:\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "lf.sfeq.s %1, %2\n\t"
- "l.bf lfeqd\n\t"
- "l.nop\n\t"
- "l.addi %0, %0, 0x1\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.sfeq.s error\n");
- return -1;
- }
-
- b = 13.5;
- c = 13.5;
- result = 0x3;
- __asm
- ("lf.sfeq.s %1, %2\n\t"
- "l.bf 1f\n\t"
- "l.nop\n\t"
- "l.addi r4, r4, 0x1\n\t"
- "1:\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.sfeq.s error\n");
- return -1;
- }
-
-/* double b, c;
- double result;
- int a;
-
- a = 0x1;
- b = 122.5;
- c = 133.5;
- result = 0x3;
-
- __asm
- ("lfeqd:\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "lf.sfeq.d %1, %2\n\t"
- "l.bf lfeqd\n\t"
- "l.nop\n\t"
- "l.addi %0, %0, 0x1\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.sfeq.d error\n");
- return -1;
- }
-
- double c, d, res;
- int e = 0;
- c = 11.5;
- d = 11.5;
- res = 1;
- __asm
- ("lf.sfeq.d %1, %2\n\t"
- "l.bf 1f\n\t"
- "l.nop\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "1:\n\t"
- : "+r"(e)
- : "r"(c), "r"(d)
- );
- if (e != res) {
- printf("lf.sfeq.d error\n");
- return -1;
- }*/
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_lf_ges.c b/qemu/tests/tcg/openrisc/test_lf_ges.c
deleted file mode 100644
index 98e7f50b6..000000000
--- a/qemu/tests/tcg/openrisc/test_lf_ges.c
+++ /dev/null
@@ -1,88 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, result;
- float b, c;
-
- a = 0;
- b = 122.5;
- c = 123.5;
- result = 0x1;
- __asm
- ("lfges:\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "lf.sfge.s %1, %2\n\t"
- "l.bf lfges\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.sfge.s error\n");
- return -1;
- }
-
- b = 133.5;
- c = 13.5;
- result = 0x3;
- __asm
- ("l.addi %0, %0, 0x1\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "lf.sfge.s %1, %2\n\t"
- "l.bf 1f\n\t"
- "l.nop\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "1:\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.sfge.s error\n");
- return -1;
- }
-
-/* int a, result;
- double b, c;
-
- a = 0x1;
- b = 122.5;
- c = 123.5;
- result = 0x2;
- __asm
- ("lfged:\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "lf.sfge.d %1, %2\n\t"
- "l.bf lfged\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.sfge.d error\n");
- return -1;
- }
-
- b = 133.5;
- c = 13.5;
- result = 0x4;
- __asm
- ("lf.sfge.d %1, %2\n\t"
- "l.bf 1f\n\t"
- "l.nop\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "1:\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "l.addi %0, %0, 0x1\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.sfge.d error\n");
- return -1;
- }*/
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_lf_gts.c b/qemu/tests/tcg/openrisc/test_lf_gts.c
deleted file mode 100644
index f3df27958..000000000
--- a/qemu/tests/tcg/openrisc/test_lf_gts.c
+++ /dev/null
@@ -1,86 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, result;
- float b, c;
-
- a = 0;
- b = 122.5;
- c = 123.5;
- result = 0x1;
- __asm
- ("lfgts:\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "lf.sfgt.s %1, %2\n\t"
- "l.bf lfgts\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.sfgt.s error\n");
- return -1;
- }
-
- b = 133.5;
- c = 13.5;
- result = 0x1;
- __asm
- ("lf.sfgt.s %1, %2\n\t"
- "l.bf 1f\n\t"
- "l.nop\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "1:\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.sfgt.s error\n");
- return -1;
- }
-
-/* int a, result;
- double b, c;
-
- a = 0;
- b = 122.5;
- c = 123.5;
- result = 0x1;
- __asm
- ("lfgtd:\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "lf.sfgt.d %1, %2\n\t"
- "l.bf lfgtd\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.sfgt.d error\n");
- return -1;
- }
-
- b = 133.5;
- c = 13.5;
- result = 0x3;
- __asm
- ("l.addi %0, %0, 0x1\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "lf.sfgt.d %1, %2\n\t"
- "l.bf 1f\n\t"
- "l.nop\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "1:\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.sfgt.d error, %x\n", a);
- return -1;
- }*/
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_lf_les.c b/qemu/tests/tcg/openrisc/test_lf_les.c
deleted file mode 100644
index 046c511d9..000000000
--- a/qemu/tests/tcg/openrisc/test_lf_les.c
+++ /dev/null
@@ -1,88 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a;
- float b, c;
- int result;
-
- a = 0;
- b = 1234.2;
- c = 12.4;
- result = 0x1;
- __asm
- ("lfles:\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "lf.sfle.s %1, %2\n\t"
- "l.bf lfles\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.sfle.s error\n");
- return -1;
- }
-
- b = 1.1;
- c = 19.4;
- result = 0x3;
- __asm
- ("l.addi %0, %0, 0x1\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "lf.sfle.s %1, %2\n\t"
- "l.bf 1f\n\t"
- "l.nop\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "1:\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.sfle.s error\n");
- return -1;
- }
-
-/* int a;
- double b, c;
- int result;
-
- a = 0;
- b = 1212.5;
- c = 123.5;
- result = 0x1;
- __asm
- ("lfled:\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "lf.sfle.d %1, %2\n\t"
- "l.bf lfled\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.sfle.d error\n");
- return -1;
- }
-
- b = 13.5;
- c = 113.5;
- result = 0x2;
- __asm
- ("l.addi %0, %0, 0x1\n\t"
- "lf.sfle.d %1, %2\n\t"
- "l.bf 1f\n\t"
- "l.nop\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "1:\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.sfle.d error\n");
- return -1;
- }*/
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_lf_lts.c b/qemu/tests/tcg/openrisc/test_lf_lts.c
deleted file mode 100644
index fa56721df..000000000
--- a/qemu/tests/tcg/openrisc/test_lf_lts.c
+++ /dev/null
@@ -1,92 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a;
- float b, c, d;
- int result;
-
- a = 0;
- b = 124.5;
- c = 1.4;
- result = 1;
- __asm
- ("lfltd:\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "lf.sflt.s %1, %2\n\t"
- "l.bf lfltd\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.sflt.s error\n");
- return -1;
- }
-
- a = 0;
- b = 11.1;
- c = 13.1;
- d = 1.0;
- result = 2;
- __asm
- ("1:\n\t"
- "lf.add.s %1, %1, %3\n\t"
- "l.addi %0, %0, 1\n\t"
- "lf.sflt.s %1, %2\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b), "r"(c), "r"(d)
- );
- if (a != result) {
- printf("lf.sflt.s error\n");
- return -1;
- }
-
-/* int a;
- double b, c;
- int result;
-
- a = 0;
- b = 1432.1;
- c = 2.4;
- result = 0x1;
- __asm
- ("lfltd:\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "lf.sflt.d %1, %2\n\t"
- "l.bf lfltd\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.sflt.d error\n");
- return -1;
- }
-
- a = 0;
- b = 1.1;
- c = 19.7;
- result = 2;
- __asm
- ("lf.sflt.d %1, %2\n\t"
- "l.bf 1f\n\t"
- "l.nop\n\t"
- "l.addi %0, %0, 1\n\t"
- "l.addi %0, %0, 1\n\t"
- "l.addi %0, %0, 1\n\t"
- "1:\n\t"
- "l.addi %0, %0, 1\n\t"
- "l.addi %0, %0, 1\n\t"
- : "+r"(a), "+r"(b)
- : "r"(c)
- );
- if (a != result) {
- printf("lf.sflt.d error\n");
- return -1;
- }*/
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_lf_mul.c b/qemu/tests/tcg/openrisc/test_lf_mul.c
deleted file mode 100644
index bc8ad800c..000000000
--- a/qemu/tests/tcg/openrisc/test_lf_mul.c
+++ /dev/null
@@ -1,22 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- float a, b, c;
- float result;
-
- b = 1.5;
- c = 4.0;
- result = 6.0;
- __asm
- ("lf.mul.s %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.mul.s error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_lf_nes.c b/qemu/tests/tcg/openrisc/test_lf_nes.c
deleted file mode 100644
index 613631005..000000000
--- a/qemu/tests/tcg/openrisc/test_lf_nes.c
+++ /dev/null
@@ -1,89 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a;
- float b, c;
- int result;
-
- a = 0;
- b = 23.1;
- c = 23.1;
- result = 0x1;
- __asm
- ("lfnes:\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "lf.sfne.s %1, %2\n\t"
- "l.bf lfnes\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.sfne.s error");
- return -1;
- }
-
- b = 12.4;
- c = 7.8;
- result = 0x3;
- __asm
- ("l.addi %0, %0, 0x1\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "lf.sfne.s %1, %2\n\t"
- "l.bf 1f\n\t"
- "l.nop\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "1:\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.sfne.s error\n");
- return -1;
- }
-/* int a;
- double b, c;
- int result;
-
- a = 0;
- b = 124.3;
- c = 124.3;
- result = 0x1;
- __asm
- ("lfned:\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "lf.sfne.d %1, %2\n\t"
- "l.bf lfned\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.sfne.d error\n");
- return -1;
- }
-
- b = 11.5;
- c = 16.7;
- result = 0x3;
- __asm
- ("l.addi %0, %0, 0x1\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "lf.sfne.d %1, %2\n\t"
- "l.bf 1f\n\t"
- "l.nop\n\t"
- "l.addi r4, r4, 0x1\n\t"
- "l.addi r4, r4, 0x1\n\t"
- "1:\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.sfne.d error\n");
- return -1;
- }*/
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_lf_rem.c b/qemu/tests/tcg/openrisc/test_lf_rem.c
deleted file mode 100644
index bd6090d69..000000000
--- a/qemu/tests/tcg/openrisc/test_lf_rem.c
+++ /dev/null
@@ -1,32 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- float a, b, c;
- float result;
-
- b = 101.5;
- c = 10;
- result = 1.5;
-/* __asm
- ("lf.rem.d %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.rem.d error\n");
- return -1;
- }*/
-
- __asm
- ("lf.rem.s %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.rem.s error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_lf_sub.c b/qemu/tests/tcg/openrisc/test_lf_sub.c
deleted file mode 100644
index 5ee9b0391..000000000
--- a/qemu/tests/tcg/openrisc/test_lf_sub.c
+++ /dev/null
@@ -1,35 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- float a, b, c;
- float result;
-
- b = 10.5;
- c = 1.5;
- result = 9.0;
- __asm
- ("lf.sub.s %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.sub.s error\n");
- return -1;
- }
-
-/* b = 0x999;
- c = 0x654;
- result = 0x345;
- __asm
- ("lf.sub.d %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("lf.sub.d error\n");
- return -1;
- }*/
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_logic.c b/qemu/tests/tcg/openrisc/test_logic.c
deleted file mode 100644
index 46d173f48..000000000
--- a/qemu/tests/tcg/openrisc/test_logic.c
+++ /dev/null
@@ -1,105 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b, c;
- int result;
-
- b = 0x9743;
- c = 0x2;
- result = 0x25d0c;
- __asm
- ("l.sll %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("sll error\n");
- return -1;
- }
-
- b = 0x9743;
- result = 0x25d0c;
- __asm
- ("l.slli %0, %1, 0x2\n\t"
- : "=r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("slli error\n");
- return -1;
- }
-
- b = 0x7654;
- c = 0x03;
- result = 0xeca;
- __asm
- ("l.srl %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
-
- b = 0x7654;
- result = 0xeca;
- __asm
- ("l.srli %0, %1, 0x3\n\t"
- : "=r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("srli error\n");
- return -1;
- }
-
- b = 0x80000001;
- c = 0x4;
- result = 0x18000000;
- __asm
- ("l.ror %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("ror error\n");
- return -1;
- }
-
- b = 0x80000001;
- result = 0x18000000;
- __asm
- ("l.rori %0, %1, 0x4\n\t"
- : "=r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("rori error\n");
- return -1;
- }
-
- b = 0x80000001;
- c = 0x03;
- result = 0xf0000000;
- __asm
- ("l.sra %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("sra error\n");
- return -1;
- }
-
- b = 0x80000001;
- result = 0xf0000000;
- __asm
- ("l.srai %0, %1, 0x3\n\t"
- : "=r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("srai error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_lx.c b/qemu/tests/tcg/openrisc/test_lx.c
deleted file mode 100644
index 792e3d5c7..000000000
--- a/qemu/tests/tcg/openrisc/test_lx.c
+++ /dev/null
@@ -1,84 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a;
- int p[50];
- int result;
-
- result = 0x23;
- __asm
- ("l.ori r8, r0, 0x123\n\t"
- "l.sb 0x4 + %1, r8\n\t"
- "\n\t"
- "l.lbz %0, 0x4 + %1\n\t"
- : "=r"(a), "+m"(*p)
- );
- if (a != result) {
- printf("lbz error, %x\n", a);
- return -1;
- }
-
- result = 0x23;
- __asm
- ("l.lbs %0, 0x4 + %1\n\t"
- : "=r"(a)
- : "m"(*p)
- );
- if (a != result) {
- printf("lbs error\n");
- return -1;
- }
-
- result = 0x1111;
- __asm
- ("l.ori r8, r0, 0x1111\n\t"
- "l.sh 0x20 + %1, r8\n\t"
- "\n\t"
- "l.lhs %0, 0x20 + %1\n\t"
- : "=r"(a), "=m"(*p)
- );
- if (a != result) {
- printf("lhs error, %x\n", a);
- return -1;
- }
-
- result = 0x1111;
- __asm
- ("l.lhz %0, 0x20 + %1\n\t"
- : "=r"(a)
- : "m"(*p)
- );
- if (a != result) {
- printf("lhz error\n");
- return -1;
- }
-
- result = 0x1111233;
- __asm
- ("l.ori r8, r0, 0x1233\n\t"
- "l.movhi r1, 0x111\n\t"
- "l.or r8, r8, r1\n\t"
- "l.sw 0x123 + %1, r8\n\t"
- "\n\t"
- "l.lws %0, 0x123 + %1\n\t"
- : "=r"(a), "+m"(*p)
- );
- if (a != result) {
- printf("lws error, %x\n", a);
- return -1;
- }
-
- result = 0x1111233;
- __asm
- ("l.lwz %0, 0x123 + %1\n\t"
- : "=r"(a)
- : "m"(*p)
- );
- if (a != result) {
- printf("lwz error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_movhi.c b/qemu/tests/tcg/openrisc/test_movhi.c
deleted file mode 100644
index 737f75b9f..000000000
--- a/qemu/tests/tcg/openrisc/test_movhi.c
+++ /dev/null
@@ -1,31 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a;
- int result;
-
- result = 0x1222;
- __asm
- ("l.movhi r3, 0x1222\n\t"
- "l.srli %0, r3, 16\n\t"
- : "=r"(a)
- );
- if (a != result) {
- printf("movhi error\n");
- return -1;
- }
-
- result = 0x1111;
- __asm
- ("l.movhi r8, 0x1111\n\t"
- "l.srli %0, r8, 16\n\t"
- : "=r"(a)
- );
- if (a != result) {
- printf("movhi error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_mul.c b/qemu/tests/tcg/openrisc/test_mul.c
deleted file mode 100644
index 130101fde..000000000
--- a/qemu/tests/tcg/openrisc/test_mul.c
+++ /dev/null
@@ -1,61 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b, c;
- int result;
-
- b = 0x4;
- c = 0x1;
- result = 0x4;
- __asm
- ("l.mul %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("mul error\n");
- return -1;
- }
-
- b = 0x1;
- c = 0x0;
- result = 0x0;
- __asm
- ("l.mul %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("mul error\n");
- return -1;
- }
-
- b = 0x1;
- c = 0xff;
- result = 0xff;
- __asm
- ("l.mul %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("mul error\n");
- return -1;
- }
-
- b = 0x7fffffff;
- c = 0x2;
- result = 0xfffffffe;
- __asm
- ("l.mul %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("mul error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_muli.c b/qemu/tests/tcg/openrisc/test_muli.c
deleted file mode 100644
index f1042e98d..000000000
--- a/qemu/tests/tcg/openrisc/test_muli.c
+++ /dev/null
@@ -1,48 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b, c;
- int result;
-
- b = 0x4;
- c = 0x1;
- result = 0x4;
- __asm
- ("l.muli %0, %1, 0x1\n\t"
- : "=r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("muli error\n");
- return -1;
- }
-
- b = 0x1;
- c = 0x0;
- result = 0x0;
- __asm
- ("l.muli %0, %1, 0x0\n\t"
- : "=r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("muli error\n");
- return -1;
- }
-
- b = 0x1;
- c = 0xff;
- result = 0xff;
- __asm
- ("l.muli %0, %1, 0xff\n\t"
- : "=r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("muli error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_mulu.c b/qemu/tests/tcg/openrisc/test_mulu.c
deleted file mode 100644
index 2d1e97d16..000000000
--- a/qemu/tests/tcg/openrisc/test_mulu.c
+++ /dev/null
@@ -1,48 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b, c;
- int result;
-
- b = 0x4;
- c = 0x1;
- result = 0x4;
- __asm
- ("l.mulu %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("mulu error\n");
- return -1;
- }
-
- b = 0x1;
- c = 0x0;
- result = 0x0;
- __asm
- ("l.mulu %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("mulu error\n");
- return -1;
- }
-
- b = 0x1;
- c = 0xff;
- result = 0xff;
- __asm
- ("l.mulu %0, %1, %2\n\t"
- : "=r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("mulu error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_sfeq.c b/qemu/tests/tcg/openrisc/test_sfeq.c
deleted file mode 100644
index bd7f875b7..000000000
--- a/qemu/tests/tcg/openrisc/test_sfeq.c
+++ /dev/null
@@ -1,43 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b;
- int result;
-
- a = 0x1;
- b = 0x80;
- result = 0x2;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "l.sfeq %0, %1\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("sfeq error\n");
- return -1;
- }
-
- a = 0x7f;
- b = 0x80;
- result = 0x81;
- __asm
- ("2:\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "l.sfeq %0, %1\n\t"
- "l.bf 2b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("sfeq error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_sfeqi.c b/qemu/tests/tcg/openrisc/test_sfeqi.c
deleted file mode 100644
index 574261321..000000000
--- a/qemu/tests/tcg/openrisc/test_sfeqi.c
+++ /dev/null
@@ -1,39 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a;
- int result;
-
- a = 1;
- result = 2;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "l.sfeqi %0, 0x80\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- );
- if (a != result) {
- printf("sfeqi error\n");
- return -1;
- }
-
- a = 0x7f;
- result = 0x81;
- __asm
- ("2:\n\t"
- "l.addi %0, %0, 0x1\n\t"
- "l.sfeqi %0, 0x80\n\t"
- "l.bf 2b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- );
- if (a != result) {
- printf("sfeqi error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_sfges.c b/qemu/tests/tcg/openrisc/test_sfges.c
deleted file mode 100644
index 23761d7f5..000000000
--- a/qemu/tests/tcg/openrisc/test_sfges.c
+++ /dev/null
@@ -1,44 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b, c;
- int result;
-
- a = 0;
- b = 3;
- result = 1;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 1\n\t"
- "l.sfges %0, %1\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("sfges error\n");
- return -1;
- }
-
- a = 0xff;
- b = 3;
- c = 0x1;
- result = 2;
- __asm
- ("1:\n\t"
- "l.sub %0, %0, %2\n\t"
- "l.sfges %0, %1\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("sfges error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_sfgesi.c b/qemu/tests/tcg/openrisc/test_sfgesi.c
deleted file mode 100644
index 54a2d51cd..000000000
--- a/qemu/tests/tcg/openrisc/test_sfgesi.c
+++ /dev/null
@@ -1,40 +0,0 @@
-#include <stdio.h>
-int main(void)
-{
- int a, b;
- int result;
-
- a = 0;
- result = 1;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 1\n\t"
- "l.sfgesi %0, 0x3\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- );
- if (a != result) {
- printf("sfgesi error\n");
- return -1;
- }
-
- a = 0xff;
- b = 1;
- result = 2;
- __asm
- ("1:\n\t"
- "l.sub %0, %0, %1\n\t"
- "l.sfgesi %0, 0x3\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("sfgesi error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_sfgeu.c b/qemu/tests/tcg/openrisc/test_sfgeu.c
deleted file mode 100644
index 2a491d91e..000000000
--- a/qemu/tests/tcg/openrisc/test_sfgeu.c
+++ /dev/null
@@ -1,44 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b, c;
- int result;
-
- a = 0;
- b = 3;
- result = 1;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 1\n\t"
- "l.sfgeu %0, %1\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("sfgeu error\n");
- return -1;
- }
-
- a = 0xff;
- b = 3;
- c = 1;
- result = 2;
- __asm
- ("1:\n\t"
- "l.sub %0, %0, %2\n\t"
- "l.sfgeu %0, %1\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("sfgeu error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_sfgeui.c b/qemu/tests/tcg/openrisc/test_sfgeui.c
deleted file mode 100644
index 40af35c68..000000000
--- a/qemu/tests/tcg/openrisc/test_sfgeui.c
+++ /dev/null
@@ -1,41 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b;
- int result;
-
- a = 0;
- result = 1;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 1\n\t"
- "l.sfgeui %0, 0x3\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- );
- if (a != result) {
- printf("sfgeui error\n");
- return -1;
- }
-
- a = 0xff;
- b = 1;
- result = 2;
- __asm
- ("1:\n\t"
- "l.sub %0, %0, %1\n\t"
- "l.sfgeui %0, 0x3\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("sfgeui error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_sfgts.c b/qemu/tests/tcg/openrisc/test_sfgts.c
deleted file mode 100644
index 4481a9cc3..000000000
--- a/qemu/tests/tcg/openrisc/test_sfgts.c
+++ /dev/null
@@ -1,45 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b, c;
- int result;
-
- a = 0;
- b = 3;
- result = 1;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 1\n\t"
- "l.sfgts %0, %1\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("sfgts error\n");
- return -1;
- }
-
-
- a = 0xff;
- b = 3;
- c = 1;
- result = 3;
- __asm
- ("1:\n\t"
- "l.sub %0, %0, %2\n\t"
- "l.sfgts %0, %1\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("sfgts error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_sfgtsi.c b/qemu/tests/tcg/openrisc/test_sfgtsi.c
deleted file mode 100644
index 7366e1292..000000000
--- a/qemu/tests/tcg/openrisc/test_sfgtsi.c
+++ /dev/null
@@ -1,41 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b;
- int result;
-
- a = 0;
- result = 1;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 1\n\t"
- "l.sfgtsi %0, 0x3\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- );
- if (a != result) {
- printf("sfgtsi error\n");
- return -1;
- }
-
- a = 0xff;
- b = 1;
- result = 3;
- __asm
- ("1:\n\t"
- "l.sub %0, %0, %1\n\t"
- "l.sfgtsi %0, 0x3\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("sfgtsi error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_sfgtu.c b/qemu/tests/tcg/openrisc/test_sfgtu.c
deleted file mode 100644
index da2868916..000000000
--- a/qemu/tests/tcg/openrisc/test_sfgtu.c
+++ /dev/null
@@ -1,43 +0,0 @@
-#include <stdio.h>
-int main(void)
-{
- int a, b, c;
- int result;
-
- a = 0;
- b = 3;
- result = 1;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 1\n\t"
- "l.sfgtu %0, %1\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("sfgtu error\n");
- return -1;
- }
-
- a = 0xff;
- b = 3;
- c = 1;
- result = 3;
- __asm
- ("1:\n\t"
- "l.sub %0, %0, %2\n\t"
- "l.sfgtu %0, %1\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b), "r"(c)
- );
- if (a != result) {
- printf("sfgtu error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_sfgtui.c b/qemu/tests/tcg/openrisc/test_sfgtui.c
deleted file mode 100644
index 565d44f11..000000000
--- a/qemu/tests/tcg/openrisc/test_sfgtui.c
+++ /dev/null
@@ -1,42 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b;
- int result;
-
- a = 0;
- result = 1;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 1\n\t"
- "l.sfgtui %0, 0x3\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- );
- if (a != result) {
- printf("sfgtui error\n");
- return -1;
- }
-
-
- a = 0xff;
- b = 1;
- result = 3;
- __asm
- ("1:\n\t"
- "l.sub %0, %0, %1\n\t"
- "l.sfgtui %0, 0x3\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("sfgtui error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_sfles.c b/qemu/tests/tcg/openrisc/test_sfles.c
deleted file mode 100644
index f5735228f..000000000
--- a/qemu/tests/tcg/openrisc/test_sfles.c
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b;
- int result;
-
- a = 0;
- b = 3;
- result = 4;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 4\n\t"
- "l.sfles %0, %1\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("sfles error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_sflesi.c b/qemu/tests/tcg/openrisc/test_sflesi.c
deleted file mode 100644
index 16fe6053e..000000000
--- a/qemu/tests/tcg/openrisc/test_sflesi.c
+++ /dev/null
@@ -1,39 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a;
- int result;
-
- a = 0;
- result = 4;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 4\n\t"
- "l.sflesi %0, 0x3\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- );
- if (a != result) {
- printf("sflesi error\n");
- return -1;
- }
-
- a = 0;
- result = 4;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 1\n\t"
- "l.sflesi %0, 0x3\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- );
- if (a != result) {
- printf("sflesi error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_sfleu.c b/qemu/tests/tcg/openrisc/test_sfleu.c
deleted file mode 100644
index be0a3c3f4..000000000
--- a/qemu/tests/tcg/openrisc/test_sfleu.c
+++ /dev/null
@@ -1,43 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b;
- int result;
-
- a = 0;
- b = 3;
- result = 4;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 4\n\t"
- "l.sfleu %0, %1\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("sfleu error\n");
- return -1;
- }
-
- a = 0;
- b = 3;
- result = 4;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 1\n\t"
- "l.sfleu %0, %1\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("sfleu error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_sfleui.c b/qemu/tests/tcg/openrisc/test_sfleui.c
deleted file mode 100644
index 38d3c8970..000000000
--- a/qemu/tests/tcg/openrisc/test_sfleui.c
+++ /dev/null
@@ -1,39 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a;
- int result;
-
- a = 0;
- result = 4;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 4\n\t"
- "l.sfleui %0, 0x3\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- );
- if (a != result) {
- printf("sfleui error\n");
- return -1;
- }
-
- a = 0;
- result = 4;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 1\n\t"
- "l.sfleui %0, 0x3\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- );
- if (a != result) {
- printf("sfleui error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_sflts.c b/qemu/tests/tcg/openrisc/test_sflts.c
deleted file mode 100644
index 7deeb48d0..000000000
--- a/qemu/tests/tcg/openrisc/test_sflts.c
+++ /dev/null
@@ -1,43 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b;
- int result;
-
- a = 0;
- b = 3;
- result = 4;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 4\n\t"
- "l.sflts %0, %1\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("sflts error\n");
- return -1;
- }
-
- a = 0;
- b = 3;
- result = 3;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 1\n\t"
- "l.sflts %0, %1\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("sflts error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_sfltsi.c b/qemu/tests/tcg/openrisc/test_sfltsi.c
deleted file mode 100644
index 3cb1f0285..000000000
--- a/qemu/tests/tcg/openrisc/test_sfltsi.c
+++ /dev/null
@@ -1,39 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a;
- int result;
-
- a = 0;
- result = 4;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 4\n\t"
- "l.sfltsi %0, 0x3\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- );
- if (a != result) {
- printf("sfltsi error\n");
- return -1;
- }
-
- a = 0;
- result = 3;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 1\n\t"
- "l.sfltsi %0, 0x3\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- );
- if (a != result) {
- printf("sfltsi error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_sfltu.c b/qemu/tests/tcg/openrisc/test_sfltu.c
deleted file mode 100644
index 7ed3b2685..000000000
--- a/qemu/tests/tcg/openrisc/test_sfltu.c
+++ /dev/null
@@ -1,43 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b;
- int result;
-
- a = 0;
- b = 3;
- result = 4;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 4\n\t"
- "l.sfltu %0, %1\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("sfltu error\n");
- return -1;
- }
-
- a = 0;
- b = 3;
- result = 3;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 1\n\t"
- "l.sfltu %0, %1\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("sfltu error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_sfltui.c b/qemu/tests/tcg/openrisc/test_sfltui.c
deleted file mode 100644
index a5cb9f6a9..000000000
--- a/qemu/tests/tcg/openrisc/test_sfltui.c
+++ /dev/null
@@ -1,39 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a;
- int result;
-
- a = 0;
- result = 4;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 4\n\t"
- "l.sfltsi %0, 0x3\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- );
- if (a != result) {
- printf("sfltui error\n");
- return -1;
- }
-
- a = 0;
- result = 3;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 1\n\t"
- "l.sfltsi %0, 0x3\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- );
- if (a != result) {
- printf("sfltui error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_sfne.c b/qemu/tests/tcg/openrisc/test_sfne.c
deleted file mode 100644
index b33a35cf9..000000000
--- a/qemu/tests/tcg/openrisc/test_sfne.c
+++ /dev/null
@@ -1,43 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b;
- int result;
-
- a = 0;
- b = 3;
- result = 3;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 3\n\t"
- "l.sfne %0, %1\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("sfne error\n");
- return -1;
- }
-
- a = 0;
- b = 3;
- result = 3;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 1\n\t"
- "l.sfne %0, %1\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("sfne error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_sfnei.c b/qemu/tests/tcg/openrisc/test_sfnei.c
deleted file mode 100644
index d311c9e66..000000000
--- a/qemu/tests/tcg/openrisc/test_sfnei.c
+++ /dev/null
@@ -1,39 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a;
- int result;
-
- a = 0;
- result = 3;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 3\n\t"
- "l.sfnei %0, 0x3\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- );
- if (a != result) {
- printf("sfnei error\n");
- return -1;
- }
-
- a = 0;
- result = 3;
- __asm
- ("1:\n\t"
- "l.addi %0, %0, 1\n\t"
- "l.sfnei %0, 0x3\n\t"
- "l.bf 1b\n\t"
- "l.nop\n\t"
- : "+r"(a)
- );
- if (a != result) {
- printf("sfnei error\n");
- return -1;
- }
-
- return 0;
-}
diff --git a/qemu/tests/tcg/openrisc/test_sub.c b/qemu/tests/tcg/openrisc/test_sub.c
deleted file mode 100644
index 474ec6055..000000000
--- a/qemu/tests/tcg/openrisc/test_sub.c
+++ /dev/null
@@ -1,35 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
- int a, b;
- int result;
-
- a = 0x100;
- b = 0x100;
- result = 0x0;
- __asm
- ("l.sub %0, %0, %1\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("sub error\n");
- return -1;
- }
-
- a = 0xffff;
- b = 0x1;
- result = 0xfffe;
- __asm
- ("l.sub %0, %0, %1\n\t"
- : "+r"(a)
- : "r"(b)
- );
- if (a != result) {
- printf("sub error\n");
- return -1;
- }
-
- return 0;
-}