[LLVMbugs] [Bug 4280] New: test/CodeGen/Generic/select.ll failure on linux-ppc32

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu May 28 09:59:47 PDT 2009


           Summary: test/CodeGen/Generic/select.ll failure on linux-ppc32
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: PowerPC
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu, sharparrow1 at yahoo.com

Eli, according to the buildbot your recent DAG changes are responsible for
this. Could you take a look?

$ llvm-as < test/CodeGen/Generic/select.ll | Debug/bin/llc -march=ppc32
[... snip some assembly ...]
        .global boolexpr
        .type   boolexpr, @function
        .align  2
        srwi 4, 4, 31
        xori 4, 4, 1
        and 3, 3, 4
        .size   boolexpr,.-boolexpr
llc: LegalizeDAG.cpp:2923:
llvm::SmallVectorImpl<llvm::SDValue>&): Assertion `!Tmp2.getNode() && "Can't
legalize BR_CC with legal condition!"' failed.
#0  0x00007ffff6cee095 in raise () from /lib/libc.so.6
#1  0x00007ffff6cefaf0 in abort () from /lib/libc.so.6
#2  0x00007ffff6ce72df in __assert_fail () from /lib/libc.so.6
#3  0x0000000000e663ae in ExpandNode (this=0x7fffffffdc70, Node=0x18a77b8, 
    Results=@0x7fffffffda40) at LegalizeDAG.cpp:2923
#4  0x0000000000e5925d in LegalizeOp (this=0x7fffffffdc70, Op=
      {Node = 0x18a77b8, ResNo = 0}) at LegalizeDAG.cpp:874
#5  0x0000000000e664f2 in LegalizeDAG (this=0x7fffffffdc70)
    at LegalizeDAG.cpp:228
#6  0x0000000000e66602 in llvm::SelectionDAG::Legalize (this=0x18a73e0, 
    TypesNeedLegalizing=false, OptLevel=llvm::CodeGenOpt::Default)
    at LegalizeDAG.cpp:3087
#7  0x0000000000e2e757 in llvm::SelectionDAGISel::CodeGenAndEmitDAG (
    this=0x18a65c0) at SelectionDAGISel.cpp:652
#8  0x0000000000e30c93 in llvm::SelectionDAGISel::SelectBasicBlock (
    this=0x18a65c0, LLVMBB=0x18972b0, Begin=
      {<bidirectional_iterator<llvm::Instruction,long int>> =
int,llvm::Instruction*,llvm::Instruction&>> = {<No data fields>}, <No data
fields>}, NodePtr = 0x1897440}, End=
      {<bidirectional_iterator<llvm::Instruction,long int>> =
int,llvm::Instruction*,llvm::Instruction&>> = {<No data fields>}, <No data
fields>}, NodePtr = 0x18972b0})
    at SelectionDAGISel.cpp:496
#9  0x0000000000e316e3 in llvm::SelectionDAGISel::SelectAllBasicBlocks (
    this=0x18a65c0, Fn=@0x1893cd0, MF=@0x18d3cd0, MMI=0x18bea10, DW=0x18abc30, 
    TII=@0x189bc10) at SelectionDAGISel.cpp:886
#10 0x0000000000e32493 in llvm::SelectionDAGISel::runOnFunction (
    this=0x18a65c0, Fn=@0x1893cd0) at SelectionDAGISel.cpp:326
#11 0x0000000000b40b3f in runOnFunction (this=0x18a65c0, Fn=@0x1893cd0)
    at PPCISelDAGToDAG.cpp:60
#12 0x0000000001135cd4 in llvm::FPPassManager::runOnFunction (this=0x189f4b0, 
    F=@0x1893cd0) at PassManager.cpp:1343
#13 0x0000000001136249 in llvm::FunctionPassManagerImpl::run (this=0x188fd60, 
    F=@0x1893cd0) at PassManager.cpp:1296
#14 0x00000000011363f0 in llvm::FunctionPassManager::run (this=0x7fffffffe300, 
    F=@0x1893cd0) at PassManager.cpp:1238
#15 0x000000000084541c in main (argc=4, argv=0x7fffffffe528) at llc.cpp:340
(gdb) up 3
#3  0x0000000000e663ae in ExpandNode (this=0x7fffffffdc70, Node=0x18a77b8, 
    Results=@0x7fffffffda40) at LegalizeDAG.cpp:2923
2923        assert(!Tmp2.getNode() && "Can't legalize BR_CC with legal
(gdb) p Tmp2
$1 = {Node = 0x18a8070, ResNo = 0}
(gdb) p Tmp2.getNode()
$2 = (class llvm::SDNode *) 0x18a8070
(gdb) p Tmp2.getNode()->dump()
0x18a8070: i32 = and 0x18a8260, 0x18a7b98$3 = 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