diff options
author | Aleksandar Markovic <amarkovic@wavecomp.com> | 2019-01-22 16:53:00 +0100 |
---|---|---|
committer | Aleksandar Markovic <amarkovic@wavecomp.com> | 2019-01-24 17:48:33 +0100 |
commit | 073d9f2ce051d7a4bad9aa7bfdacf97394c57c05 (patch) | |
tree | d7ebbc66d7a95c4e04f9b72d5233d363139390e6 /tests/tcg/mips/mips32-dsp/extpdpv.c | |
parent | b304981f52d2dd4ef4322fa90d1732611e9c5c45 (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/extpdpv.c')
-rw-r--r-- | tests/tcg/mips/mips32-dsp/extpdpv.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/tests/tcg/mips/mips32-dsp/extpdpv.c b/tests/tcg/mips/mips32-dsp/extpdpv.c deleted file mode 100644 index f5774eed3c..0000000000 --- a/tests/tcg/mips/mips32-dsp/extpdpv.c +++ /dev/null @@ -1,47 +0,0 @@ -#include<stdio.h> -#include<assert.h> - -int main() -{ - int rt, rs, ach, acl, dsp, pos, efi; - int result; - - ach = 0x05; - acl = 0xB4CB; - dsp = 0x07; - rs = 0x03; - result = 0x000C; - - __asm - ("wrdsp %1, 0x01\n\t" - "mthi %2, $ac1\n\t" - "mtlo %3, $ac1\n\t" - "extpdpv %0, $ac1, %4\n\t" - "rddsp %1\n\t" - : "=r"(rt), "+r"(dsp) - : "r"(ach), "r"(acl), "r"(rs) - ); - pos = dsp & 0x3F; - efi = (dsp >> 14) & 0x01; - assert(pos == 3); - assert(efi == 0); - assert(result == rt); - - ach = 0x05; - acl = 0xB4CB; - dsp = 0x01; - - __asm - ("wrdsp %1, 0x01\n\t" - "mthi %2, $ac1\n\t" - "mtlo %3, $ac1\n\t" - "extpdpv %0, $ac1, %4\n\t" - "rddsp %1\n\t" - : "=r"(rt), "+r"(dsp) - : "r"(ach), "r"(acl), "r"(rs) - ); - efi = (dsp >> 14) & 0x01; - assert(efi == 1); - - return 0; -} |