Update Thumb-2 patch - rhbz#1414486
This commit is contained in:
parent
d8c29ed440
commit
c650f2cd7a
@ -1,3 +1,6 @@
|
||||
From: Dave Martin
|
||||
Subject: "rsc" doesnt exist anymore in thumb2
|
||||
|
||||
diff --git a/fixed.h b/fixed.h
|
||||
index 4b58abf..ba4bc26 100644
|
||||
--- a/fixed.h
|
||||
@ -11,11 +14,11 @@ index 4b58abf..ba4bc26 100644
|
||||
+ operand. If needed this code can also support Thumb-1
|
||||
+ (simply append "s" to the end of the second two instructions). */
|
||||
+# define MAD_F_MLN(hi, lo) \
|
||||
+ asm ("rsbs %0, %2, #0\n\t" \
|
||||
+ "sbc %1, %1, %1\n\t" \
|
||||
+ "sub %1, %1, %3\n\t" \
|
||||
+ : "=&r" (lo), "=&r" (hi) \
|
||||
+ : "0" (lo), "1" (hi) \
|
||||
+ asm ("rsbs %0, %0, #0\n\t" \
|
||||
+ "sbc %1, %1, %1\n\t" \
|
||||
+ "sub %1, %1, %2" \
|
||||
+ : "+&r" (lo), "=&r" (hi) \
|
||||
+ : "r" (hi) \
|
||||
+ : "cc")
|
||||
+#else /* ! __thumb__ */
|
||||
# define MAD_F_MLN(hi, lo) \
|
||||
|
Loading…
Reference in New Issue
Block a user