From: Roland McGrath Date: Sun, 23 Oct 2005 00:52:00 +0000 (+0000) Subject: 2005-08-23 GOTO Masanori X-Git-Tag: cvs/glibc-2_3_6~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d2b05d75eb6a9069bde2f112b6f566ec2c49081;p=thirdparty%2Fglibc.git 2005-08-23 GOTO Masanori [BZ #1498] * sysdeps/alpha/remqu.S: Return the correct result when the same dividend and divisor are provided, and they're negative numbers. * sysdeps/alpha/divqu.S: Likewise. --- diff --git a/sysdeps/alpha/divqu.S b/sysdeps/alpha/divqu.S index fc00fa133c9..03e29aa5e69 100644 --- a/sysdeps/alpha/divqu.S +++ b/sysdeps/alpha/divqu.S @@ -240,7 +240,7 @@ $y_is_neg: /* If we get here, Y is so big that bit 63 is set. The results from the divide will be completely wrong. Fortunately, the quotient must be either 0 or 1, so just compute it directly. */ - cmpult Y, X, RV + cmpule Y, X, RV excb mt_fpcr $f3 ldt $f0, 0(sp) diff --git a/sysdeps/alpha/remqu.S b/sysdeps/alpha/remqu.S index bfa78dff573..d3383f2ed50 100644 --- a/sysdeps/alpha/remqu.S +++ b/sysdeps/alpha/remqu.S @@ -246,7 +246,7 @@ $y_is_neg: from the divide will be completely wrong. Fortunately, the quotient must be either 0 or 1, so the remainder must be X or X-Y, so just compute it directly. */ - cmpult Y, X, AT + cmpule Y, X, AT subq X, Y, RV ldt $f0, 0(sp) cmoveq AT, X, RV