[LLVMbugs] [Bug 10820] New: GVN crash on code using i31

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 31 06:35:44 PDT 2011


           Summary: GVN crash on code using i31
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: baldrick at free.fr
                CC: llvmbugs at cs.uiuc.edu

opt crash1.ll -basicaa -gvn -disable-output
opt: llvm/lib/VMCore/Instructions.cpp:2774:
llvm::BitCastInst::BitCastInst(llvm::Value*, llvm::Type*, const llvm::Twine&,
llvm::Instruction*): Assertion `castIsValid(getOpcode(), S, Ty) && "Illegal
BitCast"' failed.

target datalayout =
target triple = "x86_64-unknown-linux-gnu"

@g = external global i31

define void @main() nounwind uwtable {
  store i32 402662078, i32* bitcast (i31* @g to i32*), align 8
  %0 = load i31* @g, align 8
  store i31 %0, i31* undef, align 1

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