[LLVMbugs] [Bug 21087] New: [PPC64le] Assertion failure 'NumBytesActuallyUsed == ArgOffset'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Sep 27 17:18:42 PDT 2014


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

            Bug ID: 21087
           Summary: [PPC64le] Assertion failure 'NumBytesActuallyUsed ==
                    ArgOffset'
           Product: libraries
           Version: trunk
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedbugs at nondot.org
          Reporter: kai at redstar.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13094
  --> http://llvm.org/bugs/attachment.cgi?id=13094&action=edit
file demonstrating the bug

The attached file bug.ll results in the failure (running llc < bug.ll)

llc: /home/u0012540/llvm/lib/Target/PowerPC/PPCISelLowering.cpp:4596:
llvm::SDValue llvm::PPCTargetLowering::LowerCall_64SVR4(llvm::SDValue,
llvm::SDValue, llvm::CallingConv::ID, bool, bool, const
llvm::SmallVectorImpl<llvm::ISD::OutputArg>&, const
llvm::SmallVectorImpl<llvm::SDValue>&, const
llvm::SmallVectorImpl<llvm::ISD::InputArg>&, llvm::SDLoc, llvm::SelectionDAG&,
llvm::SmallVectorImpl<llvm::SDValue>&) const: Assertion `NumBytesActuallyUsed
== ArgOffset' failed.
0  llc       0x0000000011d25568 llvm::sys::PrintStackTrace(_IO_FILE*) + 68
1  llc       0x0000000011d258b8
2  llc       0x0000000011d24dec
3            0x00003fff7a690478 __kernel_sigtramp_rt64 + 0
4  libc.so.6 0x00003fff7a210a88 gsignal + 72
5  libc.so.6 0x00003fff7a21693c abort + 620
6  libc.so.6 0x00003fff7a2065b4
7  libc.so.6 0x00003fff7a2066a4 __assert_fail + 100
8  llc       0x0000000010ddcf00
llvm::PPCTargetLowering::LowerCall_64SVR4(llvm::SDValue, llvm::SDValue,
unsigned int, bool, bool, llvm::SmallVectorImpl<llvm::ISD::OutputArg> const&,
llvm::SmallVectorImpl<llvm::SDValue> const&,
llvm::SmallVectorImpl<llvm::ISD::InputArg> const&, llvm::SDLoc,
llvm::SelectionDAG&, llvm::SmallVectorImpl<llvm::SDValue>&) const + 10280
9  llc       0x0000000010dd8f00
llvm::PPCTargetLowering::LowerCall(llvm::TargetLowering::CallLoweringInfo&,
llvm::SmallVectorImpl<llvm::SDValue>&) const + 584
10 llc       0x0000000011ba7734
llvm::TargetLowering::LowerCallTo(llvm::TargetLowering::CallLoweringInfo&)
const + 4552
11 llc       0x0000000011b9d61c
llvm::SelectionDAGBuilder::LowerCallTo(llvm::ImmutableCallSite, llvm::SDValue,
bool, llvm::MachineBasicBlock*) + 1236
12 llc       0x0000000011ba067c
llvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&) + 3492
13 llc       0x0000000011b79ac8 llvm::SelectionDAGBuilder::visit(unsigned int,
llvm::User const&) + 1420
14 llc       0x0000000011b79454
llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) + 172
15 llc       0x0000000011bd4e94
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 96
16 llc       0x0000000011bd8468
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 3212
17 llc       0x0000000011bd40cc
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 1256
18 llc       0x0000000010dad414
19 llc       0x00000000114222ec
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 140
20 llc       0x000000001184bacc
llvm::FPPassManager::runOnFunction(llvm::Function&) + 368
21 llc       0x000000001184bd10 llvm::FPPassManager::runOnModule(llvm::Module&)
+ 108
22 llc       0x000000001184c280
23 llc       0x000000001184cc0c
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 344
24 llc       0x000000001184cfc8 llvm::legacy::PassManager::run(llvm::Module&) +
56
25 llc       0x00000000106ae370
26 llc       0x00000000106ad2ec main + 292
27 libc.so.6 0x00003fff7a1f4d00
28 libc.so.6 0x00003fff7a1f4ef8 __libc_start_main + 200
Stack dump:
0.      Program arguments: llc
1.      Running pass 'Function Pass Manager' on module '<stdin>'.
2.      Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on
function '@_adSortWchar'
Aborted (core dumped)

Running on Linux/PPC64le (Ubuntu). Found while porting LDC to PPC64le.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140928/95196fd7/attachment.html>


More information about the llvm-bugs mailing list