[Bug target/47920] strange code generated for expression (a+7)/8

2011-03-05 Thread rearnsha at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47920 Richard Earnshaw rearnsha at gcc dot gnu.org changed: What|Removed |Added Status|WAITING |RESOLVED

[Bug target/47920] strange code generated for expression (a+7)/8

2011-03-03 Thread ibolton at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47920 Ian Bolton ibolton at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last

[Bug target/47920] strange code generated for expression (a+7)/8

2011-02-28 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47920 --- Comment #1 from Mikael Pettersson mikpe at it dot uu.se 2011-02-28 09:56:36 UTC --- Presumably because arithmetic right-shift by 3 isn't the same as a division by 8 when (a+7) is negative. Changing the types to unsigned gives the code you

[Bug target/47920] strange code generated for expression (a+7)/8

2011-02-28 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47920 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added CC||jakub at gcc dot

[Bug target/47920] strange code generated for expression (a+7)/8

2011-02-28 Thread carrot at google dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47920 --- Comment #3 from Carrot carrot at google dot com 2011-03-01 06:44:47 UTC --- (In reply to comment #1) Presumably because arithmetic right-shift by 3 isn't the same as a division by 8 when (a+7) is negative. Changing the types to unsigned