[cogl/cogl-1.14] cogl-fixed: In ARM asm don't allow GCC to reuse input regs for outputs
- From: Neil Roberts <nroberts src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/cogl-1.14] cogl-fixed: In ARM asm don't allow GCC to reuse input regs for outputs
- Date: Fri, 14 Jun 2013 11:23:52 +0000 (UTC)
commit 4061a7b7ad1729c18af8b8b2745c82c6872b8f1a
Author: Roy.Li <rongqing li windriver com>
Date: Fri Jun 14 12:17:25 2013 +0100
cogl-fixed: In ARM asm don't allow GCC to reuse input regs for outputs
Add register constraints to prevent asm statement complaints like:
{standard input}:382: rdhi, rdlo and rm must all be different
Signed-off-by: Donn Seeley <donn seeley windriver com>
Reviewed-by: Neil Roberts <neil linux intel com>
(cherry picked from commit b32d135299a32d6a5594279fcdfa5a0b51c9c1ee)
cogl/cogl-fixed.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/cogl/cogl-fixed.c b/cogl/cogl-fixed.c
index 7af659f..5dc74f8 100644
--- a/cogl/cogl-fixed.c
+++ b/cogl/cogl-fixed.c
@@ -819,7 +819,7 @@ cogl_fixed_mul (CoglFixed a,
__asm__ ("smull %0, %1, %2, %3 \n"
"mov %0, %0, lsr %4 \n"
"add %1, %0, %1, lsl %5 \n"
- : "=r"(res_hi), "=r"(res_low) \
+ : "=&r"(res_hi), "=&r"(res_low) \
: "r"(a), "r"(b), "i"(COGL_FIXED_Q), "i"(32 - COGL_FIXED_Q));
return (CoglFixed) res_low;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]