Incorrect value computed with LOGXOR, ABS, +, SHIFTF

Bug #2003382 reported by Paul F. Dietz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Undecided
Unassigned

Bug Description

(defun bug118 ()
  (let* ((form '((lambda (v5) (isqrt (abs (shiftf v5 (+ v5 c -1)))))
                (logxor -186407873443 2305843009213693961 c -871746)))
         (lam1 `(lambda (c)
                 (declare (type (integer -464397608030354830 207343078637957091) c))
                 (declare
                  (optimize (space 2) (speed 3) (safety 1)
                   (debug 1) (compilation-speed 3)))
                 ,form))
         (lam2 `(lambda (c)
                  (declare (notinline logxor + abs isqrt))
                  ,form))
         (val -311322364377408855))
    (values (funcall (compile nil lam1) val)
            (funcall (compile nil lam2) val))))

(bug118) ==> 1711282511, 1617765579

x86-64, "2.3.0.187-db64046a8"

Still fails in "2.3.0.188-ad0b7f391"

Stas Boukarev (stassats)
Changed in sbcl:
status: New → Fix Committed
Revision history for this message
Paul F. Dietz (paul-f-dietz) wrote :

Not seeing this commit on the master branch?

description: updated
Revision history for this message
Stas Boukarev (stassats) wrote :

Try now.

Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.