From: Simon Hausmann Date: Sun, 2 Dec 2012 19:10:09 +0000 (+0100) Subject: Fix clobber list for inline add/sub/mul instructions X-Git-Tag: upstream/5.2.1~669^2~659^2~761 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=73d95c5e914b3d9f31c1f673ba3edb029981dc17;p=platform%2Fupstream%2Fqtdeclarative.git Fix clobber list for inline add/sub/mul instructions These inline asm blocks do also change flags, therefore we need to add the condition code register to the list of clobbered pseudo registers. Change-Id: Iea7b2557813bbb2fa86d7506e6416092fdc14702 Reviewed-by: Lars Knoll --- diff --git a/qmljs_math.h b/qmljs_math.h index 1fb9261..b9dbff8 100644 --- a/qmljs_math.h +++ b/qmljs_math.h @@ -60,7 +60,7 @@ static inline Value add_int32(int a, int b) "seto %0" : "=q" (overflow), "=r" (aa) : "r" (b), "1" (aa) - : + : "cc" ); if (!overflow) return Value::fromInt32(aa); @@ -76,7 +76,7 @@ static inline Value sub_int32(int a, int b) "seto %0" : "=q" (overflow), "=r" (aa) : "r" (b), "1" (aa) - : + : "cc" ); if (!overflow) return Value::fromInt32(aa); @@ -92,7 +92,7 @@ static inline Value mul_int32(int a, int b) "setc %0" : "=q" (overflow), "=a" (aa) : "r" (b), "1" (aa) - : "edx" + : "edx", "cc" ); if (!overflow) return Value::fromInt32(aa);