Fix pattern that was rewriting func(! var, var) as func(1).
authorGeorge Koehler <xkernigh@netscape.net>
Sun, 29 Oct 2017 18:53:33 +0000 (14:53 -0400)
committerGeorge Koehler <xkernigh@netscape.net>
Sun, 29 Oct 2017 18:53:33 +0000 (14:53 -0400)
commit3d6ee435cf6ebf94dbd3ba9ea0eca4070e5eff65
tree745acc8e004a30a82ee9acafa7e48f92c22b6792
parentcb8b28c0880bd5c57a2796eadc08a3a8c7595f36
Fix pattern that was rewriting func(! var, var) as func(1).

Bug reported by Rune, see
 - https://sourceforge.net/p/tack/mailman/message/35809953/
 - https://github.com/davidgiven/ack/issues/62

In EM code, beq and bne pop 2 values and compare them, but teq and tne
pop only 1 value and compare it with zero.  We need cms to compare 2
values; other patterns may convert cmi or cmu to cms.
tests/plat/bugs/bug-62-notvar_var_e.c [new file with mode: 0644]
tests/plat/build.lua
util/opt/patterns