[LLVMbugs] [Bug 11940] New: clang -O2 miscompiles APInt.cpp on i386-linux

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Feb 7 08:18:30 PST 2012


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

             Bug #: 11940
           Summary: clang -O2 miscompiles APInt.cpp on i386-linux
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: benny.kra at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8014
  --> http://llvm.org/bugs/attachment.cgi?id=8014
gzip'd preprocessed test-case

For the attached self-contained testcase extracted from LLVM:

$ clang++ ap.ii && ./a.out; echo $?                                             
0

$ clang++ ap.ii -O2 && ./a.out; echo $?                                         
1

I can only reproduce this on 32 bit linux, and only with clang (compiling to
bitcode and running opt on it doesn't show the problem). This makes clang's
test/CodeGen/const-init.c fail on linux selfhost.

-- 
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