PR tree-optimization/57411
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 3 May 2013 16:35:04 +0000 (16:35 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 3 May 2013 16:35:04 +0000 (16:35 +0000)
commitd06dae50a173a91ac30405002e599698c35445aa
tree7cfbfff1d49a5ddd719a789fcc708a20ad8f75af
parentcea05f44fb1e6f66f26d0b56758c090ebc4666e0
PR tree-optimization/57411
* tree-vrp.c (simplify_cond_using_ranges): Verify the constant
operand of the condition will bit into the new type when eliminating
a cast feeding a condition.

PR tree-optimization/57411
* gcc.c-torture/execute/pr57144.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198582 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr57144.c [new file with mode: 0644]
gcc/tree-vrp.c