re PR c/7284 (incorrectly simplifies leftshift followed by signed power-of-2 division)
authorJoseph Myers <jsm@polyomino.org.uk>
Thu, 22 Jul 2004 20:33:34 +0000 (21:33 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Thu, 22 Jul 2004 20:33:34 +0000 (21:33 +0100)
commit9e629a806df2b10c39b770dfd908b910b3664ace
tree5d92e9b1d075e3e456c4f77032271580d8312ecb
parentd592f1c398da37535d3c528d1a511a32d8b9b3ba
re PR c/7284 (incorrectly simplifies leftshift followed by signed power-of-2 division)

PR c/7284
* fold-const.c (extract_muldiv_1): Do not treat signed left shift
as multiplication.

testsuite:
* gcc.c-torture/execute/pr7284-1.c: New test.

From-SVN: r85059
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr7284-1.c [new file with mode: 0644]