diff options
author | Alex Bennée | 2018-04-05 16:35:11 +0200 |
---|---|---|
committer | Alex Bennée | 2018-06-20 21:22:34 +0200 |
commit | 4132431f249ac89f413ff326ec4f960992806255 (patch) | |
tree | 21253d872fa6e7cc5262a10d2c2c8d698a098272 /tests/tcg/test-i386-muldiv.h | |
parent | tests/tcg/multiarch: move most output to stdout (diff) | |
download | qemu-4132431f249ac89f413ff326ec4f960992806255.tar.gz qemu-4132431f249ac89f413ff326ec4f960992806255.tar.xz qemu-4132431f249ac89f413ff326ec4f960992806255.zip |
tests/tcg: move i386 specific tests into subdir
These only need to be built for i386 guests. This includes a stub
tests/tcg/i386/Makfile.target which absorbs some of what was in
tests/tcg/Makefile.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tests/tcg/test-i386-muldiv.h')
-rw-r--r-- | tests/tcg/test-i386-muldiv.h | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/tests/tcg/test-i386-muldiv.h b/tests/tcg/test-i386-muldiv.h deleted file mode 100644 index 015f59e157..0000000000 --- a/tests/tcg/test-i386-muldiv.h +++ /dev/null @@ -1,76 +0,0 @@ - -void glue(glue(test_, OP), b)(long op0, long op1) -{ - long res, s1, s0, flags; - s0 = op0; - s1 = op1; - res = s0; - flags = 0; - asm ("push %4\n\t" - "popf\n\t" - stringify(OP)"b %b2\n\t" - "pushf\n\t" - "pop %1\n\t" - : "=a" (res), "=g" (flags) - : "q" (s1), "0" (res), "1" (flags)); - printf("%-10s A=" FMTLX " B=" FMTLX " R=" FMTLX " CC=%04lx\n", - stringify(OP) "b", s0, s1, res, flags & CC_MASK); -} - -void glue(glue(test_, OP), w)(long op0h, long op0, long op1) -{ - long res, s1, flags, resh; - s1 = op1; - resh = op0h; - res = op0; - flags = 0; - asm ("push %5\n\t" - "popf\n\t" - stringify(OP) "w %w3\n\t" - "pushf\n\t" - "pop %1\n\t" - : "=a" (res), "=g" (flags), "=d" (resh) - : "q" (s1), "0" (res), "1" (flags), "2" (resh)); - printf("%-10s AH=" FMTLX " AL=" FMTLX " B=" FMTLX " RH=" FMTLX " RL=" FMTLX " CC=%04lx\n", - stringify(OP) "w", op0h, op0, s1, resh, res, flags & CC_MASK); -} - -void glue(glue(test_, OP), l)(long op0h, long op0, long op1) -{ - long res, s1, flags, resh; - s1 = op1; - resh = op0h; - res = op0; - flags = 0; - asm ("push %5\n\t" - "popf\n\t" - stringify(OP) "l %k3\n\t" - "pushf\n\t" - "pop %1\n\t" - : "=a" (res), "=g" (flags), "=d" (resh) - : "q" (s1), "0" (res), "1" (flags), "2" (resh)); - printf("%-10s AH=" FMTLX " AL=" FMTLX " B=" FMTLX " RH=" FMTLX " RL=" FMTLX " CC=%04lx\n", - stringify(OP) "l", op0h, op0, s1, resh, res, flags & CC_MASK); -} - -#if defined(__x86_64__) -void glue(glue(test_, OP), q)(long op0h, long op0, long op1) -{ - long res, s1, flags, resh; - s1 = op1; - resh = op0h; - res = op0; - flags = 0; - asm ("push %5\n\t" - "popf\n\t" - stringify(OP) "q %3\n\t" - "pushf\n\t" - "pop %1\n\t" - : "=a" (res), "=g" (flags), "=d" (resh) - : "q" (s1), "0" (res), "1" (flags), "2" (resh)); - printf("%-10s AH=" FMTLX " AL=" FMTLX " B=" FMTLX " RH=" FMTLX " RL=" FMTLX " CC=%04lx\n", - stringify(OP) "q", op0h, op0, s1, resh, res, flags & CC_MASK); -} -#endif - -#undef OP |