[LLVMbugs] [Bug 1756] New: Casting 'constant float' to 'constant [4 x i8]' causes assertion failure.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Oct 29 20:05:15 PDT 2007


           Summary: Casting 'constant float' to 'constant [4 x i8]' causes
                    assertion failure.
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: tomas.l.olsen at gmail.com
                CC: llvmbugs at cs.uiuc.edu

Casting 'constant float' to 'constant [4 x i8]' causes assertion failure:

Assertion `SrcBitSize == DstBitSize && "BitCast requies types of same width"'

Test case:

   Constant* c = ConstantFP::get(Type::FloatTy, float(1.0));
   c = ConstantExpr::getBitCast(c, ArrayType::get(Type::Int8Ty,

gTargetData is a global created with code like:

   gTargetData = new llvm::TargetData(M);

where module M has:

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

set from code.

Hope that is enough.

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