diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-02-26 07:46:26 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-02-27 14:26:34 -0500 |
commit | c5d552487b9eb116b61032239ffb2f8d192f19b8 (patch) | |
tree | 86076b47812c2447a676e5b4044b4bac896524ff /lib | |
parent | 1879f40af742b33ee1e09733854b1e89134b977f (diff) |
lib/mpi: avoid assembler warning
A wrapper around the umull assembly instruction might reuse
the input register as an output, which is undefined on
some ARM machines, as pointed out by this assembler warning:
CC lib/mpi/generic_mpih-mul1.o
/tmp/ccxJuxIy.s: Assembler messages:
/tmp/ccxJuxIy.s:53: rdhi, rdlo and rm must all be different
CC lib/mpi/generic_mpih-mul2.o
/tmp/ccI0scAD.s: Assembler messages:
/tmp/ccI0scAD.s:53: rdhi, rdlo and rm must all be different
CC lib/mpi/generic_mpih-mul3.o
/tmp/ccMvVQcp.s: Assembler messages:
/tmp/ccMvVQcp.s:53: rdhi, rdlo and rm must all be different
This changes the constraints to force different registers to
be used as output.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mpi/longlong.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mpi/longlong.h b/lib/mpi/longlong.h index b90e255c2a68..93336502af08 100644 --- a/lib/mpi/longlong.h +++ b/lib/mpi/longlong.h | |||
@@ -216,7 +216,7 @@ extern UDItype __udiv_qrnnd(UDItype *, UDItype, UDItype, UDItype); | |||
216 | __asm__ ("%@ Inlined umul_ppmm\n" \ | 216 | __asm__ ("%@ Inlined umul_ppmm\n" \ |
217 | "umull %r1, %r0, %r2, %r3" \ | 217 | "umull %r1, %r0, %r2, %r3" \ |
218 | : "=&r" ((USItype)(xh)), \ | 218 | : "=&r" ((USItype)(xh)), \ |
219 | "=r" ((USItype)(xl)) \ | 219 | "=&r" ((USItype)(xl)) \ |
220 | : "r" ((USItype)(a)), \ | 220 | : "r" ((USItype)(a)), \ |
221 | "r" ((USItype)(b)) \ | 221 | "r" ((USItype)(b)) \ |
222 | : "r0", "r1") | 222 | : "r0", "r1") |