1
0
mirror of https://git.yoctoproject.org/poky synced 2026-07-27 07:27:12 +00:00
Files
poky/meta/recipes-graphics/cogl/files/cogl_fixed_mul-constraint.patch
Roy.Li eba5d155f2 cogl: make cogl be able to build on ARM arch
1. Fix asm() register constraints in cogl when building for ARM.
2. Fix cogl to handle Thumb builds.

(From OE-Core rev: cdfea71ff1c4f80ff3a0ade1d7514cbf3c22abde)

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-06-14 12:44:34 +01:00

23 lines
716 B
Diff

Upstream-Status: Backport
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>
---
cogl/cogl-fixed.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/cogl/cogl-fixed.c
+++ b/cogl/cogl-fixed.c
@@ -816,7 +816,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;