PR tree-optimization/52286
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Feb 2012 12:19:47 +0000 (12:19 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Feb 2012 12:19:47 +0000 (12:19 +0000)
commit225ffc2f64e1b7c69767fb127cb8fc766bb95898
tree37656215e21718bda37d1449687ef091d6ca5cd8
parent1c6e4ce9d88b644e398b2f4337195cd497841a04
PR tree-optimization/52286
* fold-const.c (fold_binary_loc): For (X & C1) | C2
optimization use double_int_to_tree instead of build_int_cst_wide,
rewrite to use double_int vars.

* gcc.c-torture/execute/pr52286.c: New test.

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