summaryrefslogtreecommitdiffstats
path: root/qemu/tests/tcg/mips/mips64-dsp/bposge32.c
diff options
context:
space:
mode:
Diffstat (limited to 'qemu/tests/tcg/mips/mips64-dsp/bposge32.c')
-rw-r--r--qemu/tests/tcg/mips/mips64-dsp/bposge32.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/qemu/tests/tcg/mips/mips64-dsp/bposge32.c b/qemu/tests/tcg/mips/mips64-dsp/bposge32.c
deleted file mode 100644
index 97bce4460..000000000
--- a/qemu/tests/tcg/mips/mips64-dsp/bposge32.c
+++ /dev/null
@@ -1,50 +0,0 @@
-#include "io.h"
-
-int main(void)
-{
- long long dsp, sum;
- long long result;
-
- dsp = 0x20;
- sum = 0x01;
- result = 0x02;
-
- __asm
- ("wrdsp %1\n\t"
- "bposge32 test1\n\t"
- "nop\n\t"
- "addi %0, 0xA2\n\t"
- "nop\n\t"
- "test1:\n\t"
- "addi %0, 0x01\n\t"
- : "+r"(sum)
- : "r"(dsp)
- );
- if (sum != result) {
- printf("bposge32 wrong\n");
-
- return -1;
- }
-
- dsp = 0x10;
- sum = 0x01;
- result = 0xA4;
-
- __asm
- ("wrdsp %1\n\t"
- "bposge32 test2\n\t"
- "nop\n\t"
- "addi %0, 0xA2\n\t"
- "nop\n\t"
- "test2:\n\t"
- "addi %0, 0x01\n\t"
- : "+r"(sum)
- : "r"(dsp)
- );
- if (sum != result) {
- printf("bposge32 wrong\n");
-
- return -1;
- }
- return 0;
-}