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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to