[Bug target/48077] [Code Improvement] Poor expansion of multiply on powerpc64-linux

2011-03-14 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48077 Richard Guenther changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug target/48077] [Code Improvement] Poor expansion of multiply on powerpc64-linux

2011-03-11 Thread wschmidt at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48077 --- Comment #5 from William J. Schmidt 2011-03-11 21:27:25 UTC --- BTW, I mis-entered the optimization level before. The code generation was at -O2 when the mulhw was expanded into shifts/adds with the default P6 tuning. At -O3 and up, the mulh

[Bug target/48077] [Code Improvement] Poor expansion of multiply on powerpc64-linux

2011-03-11 Thread meissner at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48077 --- Comment #4 from Michael Meissner 2011-03-11 20:43:20 UTC --- It depends on what the default cpu is for the system. If you say -mcpu=power4, -mcpu=power5, or -mcpu=power7, it generates code similar to what XLC generates with mulhw to get the

[Bug target/48077] [Code Improvement] Poor expansion of multiply on powerpc64-linux

2011-03-11 Thread wschmidt at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48077 William J. Schmidt changed: What|Removed |Added Target|powerpc64-linux, others |powerpc64-linux Component|r