[LLVMbugs] [Bug 2504] New: Codegen for vector select fails on ppc32 and ppc64

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Jun 29 12:02:49 PDT 2008


           Summary: Codegen for vector select fails on ppc32 and ppc64
           Product: libraries
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: PowerPC
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: llvm at brendanyounger.com
                CC: llvmbugs at cs.uiuc.edu

Compiling the following code with either
lvm-as < vector_select.ll | llc -march=ppc32 > vector_select.s
lvm-as < vector_select.ll | llc -march=ppc64 > vector_select.s
yields a failed assertion
0x1504a30: v2f64 = select_cc 0x15042b0, 0x1504110, 0x1504620, 0x15045c0,
0x1504680Assertion failed: (0 && "Unhandled operation in SplitVectorOp!"),
function SplitVectorOp, file LegalizeDAG.cpp, line 6778.

The offending code in "vector_select.ll" is:
define <2 x double> @vector_select_bug(<2 x double> %x, <2 x double> %y) {
        %x.lo = extractelement <2 x double> %x, i32 0
        %x.lo.ge = fcmp oge double %x.lo, 0.0
        %a.d = select i1 %x.lo.ge, <2 x double> %y, <2 x double> %x
        ret <2 x double> %a.d

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