From c650f2cd7a2a62a273974d07f45e62e3e6dfa46b Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Thu, 19 Jan 2017 16:13:41 +0100 Subject: [PATCH] Update Thumb-2 patch - rhbz#1414486 --- Provide-Thumb-2-alternative-code-for-MAD_F_MLN.diff | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Provide-Thumb-2-alternative-code-for-MAD_F_MLN.diff b/Provide-Thumb-2-alternative-code-for-MAD_F_MLN.diff index f1f27e9..4641510 100644 --- a/Provide-Thumb-2-alternative-code-for-MAD_F_MLN.diff +++ b/Provide-Thumb-2-alternative-code-for-MAD_F_MLN.diff @@ -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) \