From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: 29865@debbugs.gnu.org
Cc: Mark Oteiza <mvoteiza@udel.edu>
Subject: bug#29865: 26.0.50; data-test-popcnt fails in 32bit
Date: Wed, 27 Dec 2017 10:42:47 -0500 [thread overview]
Message-ID: <jwv373wyy6g.fsf@iro.umontreal.ca> (raw)
Package: Emacs
Version: 26.0.50
"make check" keeps failing for me in test/src/data-tests.el on
data-tests-logcount, because the integer constants used in
data-tests-popcnt are too large for my 32bit build and hence are turned
into floats.
The backtrace it gives me is below.
The 1431655765.0 constant is the result of reading #x55555555!
Stefan
Test data-tests-logcount backtrace:
logand(127 1431655765.0)
(- byte (logand (lsh byte -1) 1431655765.0))
(setq byte (- byte (logand (lsh byte -1) 1431655765.0)))
data-tests-popcnt(-255)
(= (logcount n) (data-tests-popcnt n))
(setq --cl-flag-- (= (logcount n) (data-tests-popcnt n)))
(progn (setq n (car --cl-var--)) (setq --cl-flag-- (= (logcount n) (
(and (consp --cl-var--) (progn (setq n (car --cl-var--)) (setq --cl-
(while (and (consp --cl-var--) (progn (setq n (car --cl-var--)) (set
(let* ((--cl-var-- (number-sequence -255 255)) (n nil) (--cl-flag--
(setq value-347 (let* ((--cl-var-- (number-sequence -255 255)) (n ni
(unwind-protect (setq value-347 (let* ((--cl-var-- (number-sequence
(if (unwind-protect (setq value-347 (let* ((--cl-var-- (number-seque
(let (form-description-348) (if (unwind-protect (setq value-347 (let
(let ((value-347 (gensym "ert-form-evaluation-aborted-"))) (let (for
(lambda nil (let ((value-347 (gensym "ert-form-evaluation-aborted-")
ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
ert-run-test(#s(ert-test :name data-tests-logcount :documentation ni
ert-run-or-rerun-test(#s(ert--stats :selector t :tests [#s(ert-test
ert-run-tests(t #f(compiled-function (event-type &rest event-args) #
ert-run-tests-batch(nil)
ert-run-tests-batch-and-exit(nil)
eval((ert-run-tests-batch-and-exit nil))
command-line-1(("-L" ":." "-l" "ert" "-l" "src/data-tests.el" "--eva
command-line()
normal-top-level()
Test data-tests-logcount condition:
(wrong-type-argument integer-or-marker-p 1431655765.0)
next reply other threads:[~2017-12-27 15:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-27 15:42 Stefan Monnier [this message]
2019-07-14 18:02 ` bug#29865: 26.0.50; data-test-popcnt fails in 32bit Lars Ingebrigtsen
2019-07-15 13:02 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv373wyy6g.fsf@iro.umontreal.ca \
--to=monnier@iro.umontreal.ca \
--cc=29865@debbugs.gnu.org \
--cc=mvoteiza@udel.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.