[LLVMbugs] [Bug 9506] CodeGen assert on i386/idivl

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Mar 22 04:05:53 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=9506

PaX Team <pageexec at freemail.hu> changed:

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

--- Comment #2 from PaX Team <pageexec at freemail.hu> 2011-03-22 06:05:53 CDT ---
(In reply to comment #1)
> The asm has "+a" (which is a read/modify/write of eax) and "a" (which is a read
> of eax. This should be rejected by the frontend in an ideal world.

yes, i agree, it works with gcc only because with optimization enabled (as is
the case with linux) it deduces that the two inputs are the same (consistent).
now with that said, i'm afraid in the not so ideal world this construct may
occur every now and then ('it works with gcc') so maybe some simple cases like
this could still be special cased in clang?

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list