PR middle-end/40057
commit7ad40ea1fb38a5ff56070dcb967e1a1fe0aaf943
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 May 2009 15:27:40 +0000 (7 15:27 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 May 2009 15:27:40 +0000 (7 15:27 +0000)
treeafa7d064f452e1ca909d3885ee825f7486fd3cdc
parent5771c95133a7152513a7528e1dd23573a803cb7e
PR middle-end/40057
* dojump.c (prefer_and_bit_test): Use immed_double_const instead of
GEN_INT for 1 << bitnum.
(do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
build_int_cst_type.

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

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