[LLVMbugs] [Bug 617] X != A-X miscompiled in the codegenerator

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Aug 10 12:36:58 PDT 2005


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=617

sabre at nondot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
          Component|llvm-as                     |Common Code Generator Code
         OS/Version|Linux                       |All
            Product|tools                       |libraries
           Platform|PC                          |All
         Resolution|                            |FIXED
            Version|trunk                       |1.5



------- Additional Comments From sabre at nondot.org  2005-08-10 14:36 -------
Ok, it looks like this patch fixes it:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20050808/027542.html

I now get:

_testme:
        movl 4(%esp), %ecx
        movl %ecx, %eax
        negl %eax
        addl %ecx, %ecx
        cmpl $0, %ecx
        jne .LBB_testme_2       # return_block
.LBB_testme_1:  # overflow
        movl $123, %eax
        ret
.LBB_testme_2:  # return_block
        ret

for your testcase.  If you still see a problem, please reopen this bug.

-Chris



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the llvm-bugs mailing list