This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/22072] bizarre code for int*int/2
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jun 2005 14:47:29 -0000
- Subject: [Bug middle-end/22072] bizarre code for int*int/2
- References: <20050615060438.22072.felix-gcc@fefe.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pluto at agmk dot net 2005-06-15 14:47 -------
(In reply to comment #2)
> (In reply to comment #0)
>
> > Why are the two instructions after the imull emitted? Shouldn't this become
> > simply imull and sarl?
>
> No. A signed division by two is not a shift.
what about *arithmetic shift* instruction (e.g. SAR on ix86) ?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22072