Bug: incorrect results calculated for DPB on AMD64

Eric Marsden via Sbcl-devel <[email protected]>
Newsgroups gmane.lisp.steel-bank.devel
Message-ID <[email protected]>
Hi,

* (lisp-implementation-version)
"2.5.11.75-ef0ab5b6f"
* (defun foo (a)
     (declare (type (integer -1213569 8256103) a))
     (dpb (dpb a (byte 0 0) -79) (byte 1 0) a))

FOO
* (defun bar (a)
     (dpb (dpb a (byte 0 0) -79) (byte 1 0) a))

BAR
* (- (foo 5619207) (bar 5619207))
-5619280   ;; expecting 0



_______________________________________________
Sbcl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sbcl-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.