diff options
Diffstat (limited to 'qemu/tests/tcg/mips/mips32-dsp/repl_qb.c')
-rw-r--r-- | qemu/tests/tcg/mips/mips32-dsp/repl_qb.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/qemu/tests/tcg/mips/mips32-dsp/repl_qb.c b/qemu/tests/tcg/mips/mips32-dsp/repl_qb.c new file mode 100644 index 000000000..6631393ea --- /dev/null +++ b/qemu/tests/tcg/mips/mips32-dsp/repl_qb.c @@ -0,0 +1,16 @@ +#include<stdio.h> +#include<assert.h> + +int main() +{ + int rd, result; + + result = 0xBFBFBFBF; + __asm + ("repl.qb %0, 0xBF\n\t" + : "=r"(rd) + ); + assert(rd == result); + + return 0; +} |