[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft-devel] [PATCH] FT_MulFix_arm clobbers the condition codes, so specif
From: |
Dave Thomas |
Subject: |
[ft-devel] [PATCH] FT_MulFix_arm clobbers the condition codes, so specify "cc" in the clobber list. |
Date: |
Fri, 6 Jul 2012 15:21:31 +0100 |
Hi,
I hit a bug in an iOS + ARM build of FreeType where the ADDS instruction in the
FT_MulFix_arm assembly fragment was clobbering condition codes. The following
patch adds "cc" to its clobber list.
Regards,
Dave
---
include/freetype/config/ftconfig.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/include/freetype/config/ftconfig.h
b/include/freetype/config/ftconfig.h
index 5628569..4502fd8 100644
--- a/include/freetype/config/ftconfig.h
+++ b/include/freetype/config/ftconfig.h
@@ -355,7 +355,8 @@ FT_BEGIN_HEADER
"mov %0, %1, lsr #16\n\t" /* %0 = %1 >> 16 */
"orr %0, %0, %2, lsl #16\n\t" /* %0 |= %2 << 16 */
: "=r"(a), "=&r"(t2), "=&r"(t)
- : "r"(a), "r"(b) );
+ : "r"(a), "r"(b)
+ : "cc" );
return a;
}
--
1.7.7.5 (Apple Git-26)
- [ft-devel] [PATCH] FT_MulFix_arm clobbers the condition codes, so specify "cc" in the clobber list.,
Dave Thomas <=