diff options
Diffstat (limited to 'src/tests/tcg/mips/mips32-dsp/mtlo.c')
-rw-r--r-- | src/tests/tcg/mips/mips32-dsp/mtlo.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/tests/tcg/mips/mips32-dsp/mtlo.c b/src/tests/tcg/mips/mips32-dsp/mtlo.c new file mode 100644 index 0000000..caeafdb --- /dev/null +++ b/src/tests/tcg/mips/mips32-dsp/mtlo.c @@ -0,0 +1,21 @@ +#include<stdio.h> +#include<assert.h> + +int main() +{ + int acli, aclo; + int result; + + acli = 0x004433; + result = 0x004433; + + __asm + ("mthi %1, $ac1\n\t" + "mfhi %0, $ac1\n\t" + : "=r"(aclo) + : "r"(acli) + ); + assert(result == aclo); + + return 0; +} |