This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug inline-asm/87984] [7/8/9 Regression] wrong code for local reg var input to asm


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

Alexander Monakov <amonakov at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #11 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
No, you're mistaken. The clobber is outside of the live range of 'a'. There's
no clobber where 'a' is live:

        register int a asm("eax");
        a = 1;
        asm("add %1, %0" : "+r"(o) : "r"(a));

Such situation could appear as a result of inlining, for example.

Do you realize that LLVM is implementing sane semantics promised by GCC's own
documentation without inventing new syntax for inline asm operands?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]