summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test-i386.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-i386.c b/tests/test-i386.c
index 43b17285f9..838b69c909 100644
--- a/tests/test-i386.c
+++ b/tests/test-i386.c
@@ -718,8 +718,8 @@ void test_mul(void)
asm("xor %1, %1\n"\
"mov $0x12345678, %0\n"\
#op " %" size "2, %" size "0 ; setz %b1" \
- : "=r" (res), "=q" (resz)\
- : "g" (val));\
+ : "=&r" (res), "=&q" (resz)\
+ : "r" (val));\
printf("%-10s A=" FMTLX " R=" FMTLX " %ld\n", #op, val, res, resz);\
}