[FFmpeg-devel] [PATCH] Avoid "it" ARM instruction in non-Thumb mode.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Dec 18 12:22:02 CET 2011


This instruction only has an effect in Thumb2 mode and
some assemblers do not support this syntax.
The disadvantage is since we by default compile as ARM and
not Thumb none of the fate machines will check that the "it"
instruction encodes the same condition codes as the following
instructions.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
---
 libavutil/arm/intmath.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavutil/arm/intmath.h b/libavutil/arm/intmath.h
index 52af66e..56d1bc9 100644
--- a/libavutil/arm/intmath.h
+++ b/libavutil/arm/intmath.h
@@ -102,7 +102,9 @@ static av_always_inline av_const int32_t av_clipl_int32_arm(int64_t a)
 {
     int x, y;
     __asm__ ("adds   %1, %R2, %Q2, lsr #31  \n\t"
+#if CONFIG_THUMB
              "itet   ne                     \n\t"
+#endif
              "mvnne  %1, #1<<31             \n\t"
              "moveq  %0, %Q2                \n\t"
              "eorne  %0, %1,  %R2, asr #31  \n\t"
-- 
1.7.7.3



More information about the ffmpeg-devel mailing list