[LLVMbugs] [Bug 10523] New: Assertion `N2.getValueType().getSizeInBits() >= Log2_32_Ceil(N1.getValueType().getSizeInBits()) && "Invalid use of small shift amount with oversized value!"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 28 07:08:21 PDT 2011


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

           Summary: Assertion `N2.getValueType().getSizeInBits() >=
                    Log2_32_Ceil(N1.getValueType().getSizeInBits()) &&
                    "Invalid use of small shift amount with oversized
                    value!"' failed.
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nadav.rotem at intel.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=6955)
 --> (http://llvm.org/bugs/attachment.cgi?id=6955)
LL file reproducing the problem

llc: SelectionDAG.cpp:2758: llvm::SDValue llvm::SelectionDAG::getNode(unsigned
int, llvm::DebugLoc, llvm::EVT, llvm::SDValue, llvm::SDValue): Assertion
`N2.getValueType().getSizeInBits() >=
Log2_32_Ceil(N1.getValueType().getSizeInBits()) && "Invalid use of small shift
amount with oversized value!"' failed.
0  llc             0x0000000001549f06
1  llc             0x000000000154a494
2  libpthread.so.0 0x00002aaaaabd4d60
3  libc.so.6       0x00002aaaab274f45 gsignal + 53
4  libc.so.6       0x00002aaaab276340 abort + 272
5  libc.so.6       0x00002aaaab26e486 __assert_fail + 246
6  llc             0x0000000000f9fc6c llvm::SelectionDAG::getNode(unsigned int,
llvm::DebugLoc, llvm::EVT, llvm::SDValue, llvm::SDValue) + 3338
7  llc             0x000000000102267f
llvm::TargetLowering::SimplifySetCC(llvm::EVT, llvm::SDValue, llvm::SDValue,
llvm::ISD::CondCode, bool, llvm::TargetLowering::DAGCombinerInfo&,
llvm::DebugLoc) const + 23869
8  llc             0x0000000000f18aa3 (anonymous
namespace)::DAGCombiner::SimplifySetCC(llvm::EVT, llvm::SDValue, llvm::SDValue,
llvm::ISD::CondCode, llvm::DebugLoc, bool) + 197
9  llc             0x0000000000f18b8f (anonymous
namespace)::DAGCombiner::visitSETCC(llvm::SDNode*) + 203
10 llc             0x0000000000f50161 (anonymous
namespace)::DAGCombiner::visit(llvm::SDNode*) + 1315
11 llc             0x0000000000f506a4 (anonymous
namespace)::DAGCombiner::combine(llvm::SDNode*) + 44
12 llc             0x0000000000f53205 (anonymous
namespace)::DAGCombiner::Run(llvm::CombineLevel) + 505
13 llc             0x0000000000f53628
llvm::SelectionDAG::Combine(llvm::CombineLevel, llvm::AliasAnalysis&,
llvm::CodeGenOpt::Level) + 54
14 llc             0x0000000000ffe10c
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 668
15 llc             0x000000000100054e
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 230
16 llc             0x0000000001000eb0
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 2400
17 llc             0x000000000100142f
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 849
18 llc             0x000000000114c971
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 85
19 llc             0x0000000001484137
llvm::FPPassManager::runOnFunction(llvm::Function&) + 371
20 llc             0x000000000148432f
llvm::FPPassManager::runOnModule(llvm::Module&) + 81
21 llc             0x0000000001483de3
llvm::MPPassManager::runOnModule(llvm::Module&) + 381
22 llc             0x0000000001485598 llvm::PassManagerImpl::run(llvm::Module&)
+ 116
23 llc             0x00000000014855fb llvm::PassManager::run(llvm::Module&) +
33
24 llc             0x0000000000ab884d main + 2403
25 libc.so.6       0x00002aaaab262304 __libc_start_main + 244
26 llc             0x0000000000ab6f99
Stack dump:
0.    Program arguments: ../llc temp.ll -march=x86-64 -mattr=+sse2,+sse41 -o
/dev/null 
1.    Running pass 'Function Pass Manager' on module 'temp.ll'.
2.    Running pass 'X86 DAG->DAG Instruction Selection' on function
'@autogen_129334_5000'
; ModuleID = 'bugpoint-reduced-simplified.bc'
target triple = "x86_64-unknown-linux-gnu"

define void @autogen_129334_5000() {
BB:
  %I74 = insertelement <32 x i32> undef, i32 undef, i32 15
  %I105 = insertelement <32 x i32> undef, i32 undef, i32 14
  %Shuff292 = shufflevector <32 x i32> %I74, <32 x i32> undef, <32 x i32> <i32
undef, i32 12, i32 14, i32 16, i32 undef, i32 20, i32 22, i32 24, i32 26, i32
28, i32 30, i32 undef, i32 34, i32 36, i32 38, i32 40, i32 42, i32 44, i32 46,
i32 48, i32 50, i32 undef, i32 54, i32 undef, i32 undef, i32 undef, i32 undef,
i32 0, i32 2, i32 4, i32 6, i32 8>
  %Shuff302 = shufflevector <32 x i32> %Shuff292, <32 x i32> undef, <32 x i32>
<i32 27, i32 29, i32 undef, i32 33, i32 undef, i32 37, i32 39, i32 undef, i32
undef, i32 undef, i32 47, i32 undef, i32 51, i32 53, i32 55, i32 57, i32 undef,
i32 undef, i32 63, i32 1, i32 undef, i32 undef, i32 undef, i32 9, i32 11, i32
13, i32 undef, i32 17, i32 19, i32 21, i32 23, i32 undef>
  %I326 = insertelement <32 x i32> undef, i32 undef, i32 15
  %B338 = sub <32 x i32> zeroinitializer, %I105
  %FC339 = sitofp <32 x i32> %I326 to <32 x double>
  %S341 = icmp ne <32 x i32> %B338, undef
  %E376 = extractelement <32 x i1> %S341, i32 0
  %Shuff419 = shufflevector <32 x i32> undef, <32 x i32> %Shuff302, <32 x i32>
<i32 undef, i32 44, i32 46, i32 48, i32 50, i32 52, i32 undef, i32 56, i32 58,
i32 60, i32 62, i32 0, i32 2, i32 4, i32 6, i32 undef, i32 undef, i32 12, i32
14, i32 undef, i32 undef, i32 20, i32 22, i32 undef, i32 26, i32 28, i32 undef,
i32 32, i32 34, i32 36, i32 38, i32 40>
  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