aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/mips/mips32-dsp/shilo.c
diff options
context:
space:
mode:
authorAleksandar Markovic <amarkovic@wavecomp.com>2019-01-22 16:53:00 +0100
committerAleksandar Markovic <amarkovic@wavecomp.com>2019-01-24 17:48:33 +0100
commit073d9f2ce051d7a4bad9aa7bfdacf97394c57c05 (patch)
treed7ebbc66d7a95c4e04f9b72d5233d363139390e6 /tests/tcg/mips/mips32-dsp/shilo.c
parentb304981f52d2dd4ef4322fa90d1732611e9c5c45 (diff)
tests: tcg: mips: Move source files to new locations
MIPS TCG test will be organized by ISAs and ASEs in future. Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Diffstat (limited to 'tests/tcg/mips/mips32-dsp/shilo.c')
-rw-r--r--tests/tcg/mips/mips32-dsp/shilo.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/tests/tcg/mips/mips32-dsp/shilo.c b/tests/tcg/mips/mips32-dsp/shilo.c
deleted file mode 100644
index ce8ebc69c2..0000000000
--- a/tests/tcg/mips/mips32-dsp/shilo.c
+++ /dev/null
@@ -1,45 +0,0 @@
-#include<stdio.h>
-#include<assert.h>
-
-int main()
-{
- int ach, acl;
- int resulth, resultl;
-
- ach = 0xBBAACCFF;
- acl = 0x1C3B001D;
-
- resulth = 0x17755;
- resultl = 0x99fe3876;
-
- __asm
- ("mthi %0, $ac1\n\t"
- "mtlo %1, $ac1\n\t"
- "shilo $ac1, 0x0F\n\t"
- "mfhi %0, $ac1\n\t"
- "mflo %1, $ac1\n\t"
- : "+r"(ach), "+r"(acl)
- );
- assert(ach == resulth);
- assert(acl == resultl);
-
-
- ach = 0x1;
- acl = 0x80000000;
-
- resulth = 0x3;
- resultl = 0x0;
-
- __asm
- ("mthi %0, $ac1\n\t"
- "mtlo %1, $ac1\n\t"
- "shilo $ac1, -1\n\t"
- "mfhi %0, $ac1\n\t"
- "mflo %1, $ac1\n\t"
- : "+r"(ach), "+r"(acl)
- );
- assert(ach == resulth);
- assert(acl == resultl);
-
- return 0;
-}