re PR tree-optimization/50729 (Silent code gen fault: Value range propagation seems...
authorRichard Guenther <rguenther@suse.de>
Mon, 17 Oct 2011 12:22:54 +0000 (12:22 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 17 Oct 2011 12:22:54 +0000 (12:22 +0000)
commit7d5a0f1b4e54f83337d5a0b093b0a40ae8cf27d6
treec4d0d2f384a38c365c5371e2b67503ad50a6fb57
parentb9bd6f743843a53de1396c43d1e308e51d40c5c4
re PR tree-optimization/50729 (Silent code gen fault: Value range propagation seems to propagate values across narrowing/widening)

2011-10-17  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/50729
* tree-vrp.c (extract_range_from_unary_expr_1): Remove
redundant test.
(simplify_conversion_using_ranges): Properly test the
intermediate result.

* gcc.dg/torture/pr50729.c: New testcase.

From-SVN: r180087
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr50729.c [new file with mode: 0644]
gcc/tree-vrp.c