[Bug inline-asm/10396] Constraint alternatives cause error " `asm' operand requires impossible reload"
rearnsha at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Jan 14 18:32:00 GMT 2004
------- Additional Comments From rearnsha at gcc dot gnu dot org 2004-01-14 18:32 -------
Note that the compiler gets nearly optimal code if you simply write:
inline int mfp(int a, int b)
{
return (((long long) a) * b) >> 16;
}
Which is only out by a couple of cycles (A couple of redundant mov insns).
However, by not using an ASM you allow the compiler to schedule the instructions
independently, and may also expose additional optimization opportunities.
None of the above fixes the bug, but may be sufficient to solve your immediate
problems.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10396
More information about the Gcc-bugs
mailing list