diff options
Diffstat (limited to 'tests/test-i386.c')
-rw-r--r-- | tests/test-i386.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test-i386.c b/tests/test-i386.c index 27a899830f..f7e268652f 100644 --- a/tests/test-i386.c +++ b/tests/test-i386.c @@ -512,10 +512,12 @@ void test_mul(void) {\ int res, val, resz;\ val = op0;\ - asm("xorl %1, %1 ; " #op " %" size "2, %" size "0 ; setz %b1" \ + asm("xorl %1, %1\n"\ + "movl $0x12345678, %0\n"\ + #op " %" size "2, %" size "0 ; setz %b1" \ : "=r" (res), "=q" (resz)\ : "g" (val));\ - printf("%-10s A=%08x R=%08x %d\n", #op, val, resz ? 0 : res, resz);\ + printf("%-10s A=%08x R=%08x %d\n", #op, val, res, resz);\ } void test_bsx(void) |