VRP: x+1 and -x cannot be INT_MIN
authorMarc Glisse <marc.glisse@inria.fr>
Mon, 20 Nov 2017 13:26:39 +0000 (14:26 +0100)
committerMarc Glisse <glisse@gcc.gnu.org>
Mon, 20 Nov 2017 13:26:39 +0000 (13:26 +0000)
commit50dec459c62701af05e4cfb097ee2c95944495cc
treec2030da4e2fde65a2785961d95230a9465028600
parent9aab553436aa25a1306cdd03c0fae107828e8725
VRP: x+1 and -x cannot be INT_MIN

2017-11-20  Marc Glisse  <marc.glisse@inria.fr>

gcc/
* vr-values.c (extract_range_from_binary_expr): Use a full range
for VR_VARYING.

gcc/testsuite/
PR testsuite/82951
* gcc.c-torture/execute/20040409-1.c: Move invalid tests...
* gcc.c-torture/execute/20040409-1w.c: ... here with -fwrapv.
* gcc.c-torture/execute/20040409-2.c: Move invalid tests...
* gcc.c-torture/execute/20040409-2w.c: ... here with -fwrapv.
* gcc.c-torture/execute/20040409-3.c: Move invalid tests...
* gcc.c-torture/execute/20040409-3w.c: ... here with -fwrapv.
* gcc.dg/tree-ssa/cmpmul-1.c: Tweak condition.
* gcc.dg/tree-ssa/vrp118.c: New file.

From-SVN: r254954
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20040409-1.c
gcc/testsuite/gcc.c-torture/execute/20040409-1w.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/20040409-2.c
gcc/testsuite/gcc.c-torture/execute/20040409-2w.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/20040409-3.c
gcc/testsuite/gcc.c-torture/execute/20040409-3w.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/cmpmul-1.c
gcc/testsuite/gcc.dg/tree-ssa/vrp118.c [new file with mode: 0644]
gcc/vr-values.c