diff options
Diffstat (limited to 'qemu/tests/tcg/mips/mips32-dsp/addq_s_w.c')
-rw-r--r-- | qemu/tests/tcg/mips/mips32-dsp/addq_s_w.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/qemu/tests/tcg/mips/mips32-dsp/addq_s_w.c b/qemu/tests/tcg/mips/mips32-dsp/addq_s_w.c deleted file mode 100644 index 1e13acf68..000000000 --- a/qemu/tests/tcg/mips/mips32-dsp/addq_s_w.c +++ /dev/null @@ -1,44 +0,0 @@ -#include<stdio.h> -#include<assert.h> - - -int main() -{ - int rd, rs, rt; - int result; - - rt = 0x10017EFD; - rs = 0x11111111; - result = 0x2112900e; - - __asm - ("addq_s.w %0, %1, %2\n\t" - : "=r"(rd) - : "r"(rs), "r"(rt) - ); - assert(rd == result); - - rt = 0x80017EFD; - rs = 0x81111111; - result = 0x80000000; - - __asm - ("addq_s.w %0, %1, %2\n\t" - : "=r"(rd) - : "r"(rs), "r"(rt) - ); - assert(rd == result); - - rt = 0x7fffffff; - rs = 0x01111111; - result = 0x7fffffff; - - __asm - ("addq_s.w %0, %1, %2\n\t" - : "=r"(rd) - : "r"(rs), "r"(rt) - ); - assert(rd == result); - - return 0; -} |