[LLVMbugs] [Bug 1812] New: ExpandUnalignedLoad doesn't handle vector loads

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Nov 19 13:45:40 PST 2007


           Summary: ExpandUnalignedLoad doesn't handle vector loads
           Product: libraries
           Version: 1.0
          Platform: PC
        OS/Version: All
            Status: NEW
          Keywords: compile-fail
          Severity: normal
          Priority: P2
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sabre at nondot.org
                CC: natebegeman at mac.com, dalej at apple.com,
                    llvmbugs at cs.uiuc.edu

ExpandUnalignedLoad doesn't handle unaligned vectors right, which causes a
codegen crash when compiling this code to the G5 (-march=ppc32 -mcpu=g5):

define void @execute_shader(<4 x float>* %OUT, <4 x float>* %IN, <4 x float>*
        %input2 = load <4 x float>* null, align 8               ; <<4 x float>>
        %shuffle7 = shufflevector <4 x float> %input2, <4 x float> < float
0.000000e+00, float 1.000000e+00, float 0.000000e+00, float 1.000000e+00 >, <4
x i32> < i32 2, i32 2, i32 2, i32 2 >; <<4 x float>> [#uses=1]

        %mul1 = mul <4 x float> %shuffle7, zeroinitializer              ; <<4 x
        %add2 = add <4 x float> %mul1, %input2          ; <<4 x float>>
        store <4 x float> %add2, <4 x float>* null, align 8
        ret void

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