re PR middle-end/17036 (ICE: (A >> N) & 1 ? (1 << N) : 0 where A of type unsigned...
authorPaolo Bonzini <bonzini@gcc.gnu.org>
Tue, 17 Aug 2004 07:40:22 +0000 (07:40 +0000)
committerPaolo Bonzini <bonzini@gcc.gnu.org>
Tue, 17 Aug 2004 07:40:22 +0000 (07:40 +0000)
commit62fc1d7d18d061f34e73957b3e87511fdc5de3ba
tree33105d56679d89ea93b190dc2049f0985565fe47
parent7c27e184c87d2b245f80287be1d28f686b68519e
re PR middle-end/17036 (ICE: (A >> N) & 1 ? (1 << N) : 0 where A of type unsigned int)

gcc/ChangeLog:
2004-08-17  Paolo Bonzini  <bonzini@gnu.org>

PR middle-end/17036
* fold-const.c (fold): Check for integer operand when
folding (A >> N) & 1 ? (1 << N) : 0.  Fix from Andrew
Pinski  <pinskia@physics.uc.edu>.

gcc/testsuite/ChangeLog:
2004-08-17  Paolo Bonzini  <bonzini@gnu.org>

* gcc.dg/pr17036-1.c: New test.

From-SVN: r86112
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr17036-1.c [new file with mode: 0644]