<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [PPC64le] Assertion failure 'NumBytesActuallyUsed == ArgOffset'"
   href="http://llvm.org/bugs/show_bug.cgi?id=21087">21087</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[PPC64le] Assertion failure 'NumBytesActuallyUsed == ArgOffset'
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: PowerPC
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kai@redstar.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=13094" name="attach_13094" title="file demonstrating the bug">attachment 13094</a> <a href="attachment.cgi?id=13094&action=edit" title="file demonstrating the bug">[details]</a></span>
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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>