https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120020

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
           Keywords|                            |inline-asm
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Inline-asm is basically a black box.
In this case since the outputs are different, GCC is not going to merge them.

Also I am not sure why you didn't just write the division/mod in C.

Not also your inline-asm for both myMod is broken.


In the case of myDiv, dummyDividendHigh and b cannot be the same register as
you zero out dummyDividendHigh early.

myMod has a similar issue too. But it has an additional issue of not marking
eax as being clobbered.

Reply via email to