[LLVMbugs] [Bug 12716] New: PPC crashes on vector compare

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue May 1 08:18:53 PDT 2012


             Bug #: 12716
           Summary: PPC crashes on vector compare
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: baldrick at free.fr
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

I'm pretty sure this used to work!

$ llc -march=ppc32 test.ll
llc: llvm/include/llvm/CodeGen/SelectionDAG.h:611: llvm::SDValue
llvm::SelectionDAG::getSetCC(llvm::DebugLoc, llvm::EVT, llvm::SDValue,
llvm::SDValue, llvm::ISD::CondCode): Assertion `LHS.getValueType().isVector()
== VT.isVector() && "Cannot compare scalars to vectors"' failed.
12 llc       0x0000000000ca0f75 llvm::SelectionDAG::Combine(llvm::CombineLevel,
llvm::AliasAnalysis&, llvm::CodeGenOpt::Level) + 95
13 llc       0x0000000000d58f7a llvm::SelectionDAGISel::CodeGenAndEmitDAG() +


define <2 x i32> @test(<2 x i32> %x, <2 x i32> %y) {
  %c = icmp eq <2 x i32> %x, %y
  %tmp = sext <2 x i1> %c to <2 x i32>
  ret <2 x i32> %tmp

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