[LLVMbugs] [Bug 16528] New: llc -O0 producing incorrect binary where llc -O2 and gcc produce correct code

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 2 16:56:47 PDT 2013


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

            Bug ID: 16528
           Summary: llc -O0 producing incorrect binary where llc -O2 and
                    gcc produce correct code
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: richard-llvm at metafoo.co.uk
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10810
  --> http://llvm.org/bugs/attachment.cgi?id=10810&action=edit
csmith-produced testcase

Attached testcase produced by csmith; this is claimed to not have any undefined
behavior. A correct binary produces

  checksum = 55A8B9C3

gcc produces a correct binary, as does clang with any optimizations, as does

  clang test.c -O0 -emit-llvm | llc -O1 - | clang -x assembler -

but llc -O0 produces an incorrect binary.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130702/af7f78ff/attachment.html>


More information about the llvm-bugs mailing list