imul is on all x86 architectures, but whether to use it or not depends
on the characteristics of the target CPU. With -mcpu=i386, imul is
considered quite slow and a shift sequence is (almost?) always preferred
when one operand is constant. With -mcpu=i686 and newer, imul seems to
My misunderstanding. I hadn't really comprehended the full extent of
"instruction scheduling" in this context.
Andrew I MacIntyre "These thoughts are mine alone..."
E-mail: andy...@bullseye.apana.org.au (pref) | Snail: PO Box 370
andy...@pcug.org.au (alt) | Belconnen ACT 2616
Web: http://www.andymac.org/ | Australia