summaryrefslogtreecommitdiffstats
path: root/qemu/tests/tcg/openrisc/test_fx.c
diff options
context:
space:
mode:
Diffstat (limited to 'qemu/tests/tcg/openrisc/test_fx.c')
-rw-r--r--qemu/tests/tcg/openrisc/test_fx.c57
1 files changed, 0 insertions, 57 deletions
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;
-}