[LLVMbugs] [Bug 1845] New: <4 x i1> & <4 x i8> can break in compiler in TargetData:: getAlignmentInfo

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Dec 7 18:03:11 PST 2007


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

           Summary: <4 x i1> & <4 x i8> can break in compiler in
                    TargetData::getAlignmentInfo
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: cfr at adobe.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=1280)
 --> (http://llvm.org/bugs/attachment.cgi?id=1280)
Modification of the fibonacci example

The following function will fail to compile:

; ModuleID = 'test'

define void @boolVectorSelect(<4 x i1>* %boolVectorPtr) {
Body:
        %castPtr = bitcast <4 x i1>* %boolVectorPtr to <4 x i1>*
; <<4 x i1>*> [#uses=1]
        %someBools = load <4 x i1>* %castPtr, align 1           ; <<4 x i1>>
[#u
ses=1]
        %internal = alloca <4 x i1>, align 16           ; <<4 x i1>*> [#uses=1]
        store <4 x i1> %someBools, <4 x i1>* %internal, align 1
        ret void
}
verifying... Assertion failed: BestMatchIdx != -1 && "Didn't find alignment
info
 for this datatype!", file ..\..\lib\Target\TargetData.cpp, line 303

Which can be repro'd with the attached program.  (based on fibonacci llvm
example)


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