]> git.eshelyaron.com Git - emacs.git/commit
Don't treat '=' as simple equality emitting constraints (bug#46812)
authorAndrea Corallo <akrl@sdf.org>
Sat, 27 Feb 2021 21:00:11 +0000 (22:00 +0100)
committerAndrea Corallo <akrl@sdf.org>
Sun, 28 Feb 2021 22:30:03 +0000 (23:30 +0100)
commit5bc08559e8f171eafc3c034232f8cfd9eaf89862
treea8337beeb2bbb180603cccc754fbc52a0700ff38
parent2acc46b55bdf518ece6301913ffa074f31563fa4
Don't treat '=' as simple equality emitting constraints (bug#46812)

Extend assumes allowing the following form

(assume dst (= src1 src2))

to caputure '=' semanting during fwprop handling float integer
conversions.

* lisp/emacs-lisp/comp.el (comp-equality-fun-p): Don't treat '=' as
simple equality.
(comp-arithm-cmp-fun-p, comp-negate-arithm-cmp-fun)
(comp-reverse-arithm-fun): Rename and add '=' '!='.
(comp-emit-assume, comp-add-cond-cstrs, comp-fwprop-insn): Update
for new function nameing and to handle '='.
* lisp/emacs-lisp/comp-cstr.el (comp-cstr-=): New function.
* test/src/comp-tests.el (comp-tests-type-spec-tests): Add a bunch
of '=' specific tests.
lisp/emacs-lisp/comp-cstr.el
lisp/emacs-lisp/comp.el
test/src/comp-tests.el