OSDN Git Service

Backported from mainline
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 May 2014 16:05:38 +0000 (16:05 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 May 2014 16:05:38 +0000 (16:05 +0000)
commitcb78a1fb48d354129d24a804bd321fdd6692357c
treebff3a2d43bc51fa0a36cefffd2cef6f18557a967
parent9d6f975807ff20c6d426b452e15a684d0815122c
Backported from mainline
2013-09-30  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/58564
* fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
optimization, punt if sign_bit_p looked through any zero extension.

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

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