Set overflow flag for add/sub hi on x86 TYP_LONG
authorMichelle McDaniel <adiaaida@gmail.com>
Mon, 2 May 2016 20:52:39 +0000 (13:52 -0700)
committerMichelle McDaniel <adiaaida@gmail.com>
Tue, 3 May 2016 20:47:15 +0000 (13:47 -0700)
commit230d693afc8b253df012fb4569e42ba731e6f5d2
tree7f7340582cf2ca377e208d101d5dfab34a579dbe
parentcb42cbf1dca78a548deca358764500fb8a48e06b
Set overflow flag for add/sub hi on x86 TYP_LONG

When we create the hi operation for add and sub on TYP_LONG, we don't
carry the overflow flag to the hi operation. This change sets the overflow
flag on hiResult in lower if it was set on loResult, and adds GT_ADD_HI
and GT_SUB_HI to the operations that can have overflow. We also need to
pass the unsigned flag to the high part in the instance that we are
dealing with an add or subtract with overflow. Fixes #4596.
src/jit/codegenxarch.cpp
src/jit/compiler.hpp
src/jit/lower.cpp
tests/issues.targets
tests/ryujit_x86_no_fallback_issues.targets