This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] S/390 longlong.h: Fix smul_ppmm with -m31 -mzarch
- From: "Andreas Krebbel" <krebbel at linux dot vnet dot ibm dot com>
- To: libc-alpha at sourceware dot org
- Date: Mon, 6 Jun 2011 16:42:34 +0200
- Subject: [PATCH] S/390 longlong.h: Fix smul_ppmm with -m31 -mzarch
Hi,
the attached patch fixes a problem with smul_ppmm implementation for
S/390 when using -m31 -mzarch.
The patch has already been applied to GCC 4.6 and mainline:
http://gcc.gnu.org/ml/gcc-patches/2011-06/msg00414.html
Please apply.
Bye,
-Andreas-
2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* stdlib/longlong.h: Update from GCC. Fix smul_ppmm for S/390.
Index: glibc/stdlib/longlong.h
===================================================================
--- glibc.orig/stdlib/longlong.h
+++ glibc/stdlib/longlong.h
@@ -349,7 +349,7 @@ UDItype __umulsidi3 (USItype, USItype);
__asm__ ("mr\t%%r0,%3" \
: "=r" (r0), "=r" (r1) \
: "r" (r1), "r" (m1)); \
- (xh) = r1; (xl) = r0; \
+ (xh) = r0; (xl) = r1; \
} while (0)
#define sdiv_qrnnd(q, r, n1, n0, d) \
do { \