[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


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

           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 =
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-f128:128:128-n8:16:32:64"
target triple = "x86_64-unknown-linux-gnu"

@g = external global i31

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

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