<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - PowerPC64: Code hits assert in MachineOperand.h:280 - This is not a register operand!"
href="https://bugs.llvm.org/show_bug.cgi?id=34888">34888</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>PowerPC64: Code hits assert in MachineOperand.h:280 - This is not a register operand!
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</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>anton@samba.org
</td>
</tr>
<tr>
<th>CC</th>
<td>echristo@gmail.com, hfinkel@anl.gov, kit.barton@gmail.com, llvm-bugs@lists.llvm.org, nemanja.i.ibm@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=19255" name="attach_19255" title="Test case">attachment 19255</a> <a href="attachment.cgi?id=19255&action=edit" title="Test case">[details]</a></span>
Test case
The attached test case hits an assert when building the Linux kernel on
ppc64le. A cut down test case:
# llc llvm-fail.ll
llc: /home/anton/llvm/include/llvm/CodeGen/MachineOperand.h:280: unsigned int
llvm::MachineOperand::getReg() const: Assertion `isReg() && "This is not a
register operand!"' failed.
LLVMSymbolizer: error reading file: No such file or directory
#0 0x000000010e211b8c (llc+0x2611b8c)
#1 0x000000010e211c94 (llc+0x2611c94)
#2 0x000000010e20f614 (llc+0x260f614)
#3 0x000000010e210fb0 (llc+0x2610fb0)
#4 0x00007fffaf6004d8 0x4d8 __libc_signal_restore_set
#5 0x00007fffaf6004d8
/build/glibc-I4GUKU/glibc-2.24/signal/../sysdeps/unix/sysv/linux/nptl-signals.h:79:0
gsignal
#6 0x00007fffaf6004d8
/build/glibc-I4GUKU/glibc-2.24/signal/../sysdeps/unix/sysv/linux/raise.c:55:0
#7 0x00007fffaf6004d8 abort /build/glibc-I4GUKU/glibc-2.24/stdlib/abort.c:89:0
#8 0x00007fffaf04e3c0 __assert_fail_base
/build/glibc-I4GUKU/glibc-2.24/assert/assert.c:92:0
#9 0x0000000000000001
#10 0x00007fffaf0507ec __assert_fail
/build/glibc-I4GUKU/glibc-2.24/assert/assert.c:101:0
#11 0x00007fffaf043950 (/lib/powerpc64le-linux-gnu/libc.so.6+0x33950)
#12 0x00007fffaf043a44 (/lib/powerpc64le-linux-gnu/libc.so.6+0x33a44)
#13 0x000000010c5d6558 (llc+0x9d6558)
#14 0x000000010c7a259c (llc+0xba259c)
#15 0x000000010c7a3c70 (llc+0xba3c70)
#16 0x000000010c7a1938 (llc+0xba1938)
#17 0x000000010cfc0508 (llc+0x13c0508)
#18 0x000000010d729188 (llc+0x1b29188)
#19 0x000000010d7293d8 (llc+0x1b293d8)
#20 0x000000010d729950 (llc+0x1b29950)
#21 0x000000010d72a2cc (llc+0x1b2a2cc)
#22 0x000000010d72a650 (llc+0x1b2a650)
#23 0x000000010c580b70 generic_start_main
/build/glibc-I4GUKU/glibc-2.24/csu/../csu/libc-start.c:291:0
#24 0x000000010c57ef20 __libc_start_main
/build/glibc-I4GUKU/glibc-2.24/csu/../sysdeps/unix/sysv/linux/powerpc/libc-start.c:116:0
llc(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x5c)[0x10e211b8c]
llc(+0x2611c94)[0x10e211c94]
llc(_ZN4llvm3sys17RunSignalHandlersEv+0xe4)[0x10e20f614]
llc(+0x2610fb0)[0x10e210fb0]
[0x7fffaf6004d8]
/lib/powerpc64le-linux-gnu/libc.so.6(gsignal+0xd0)[0x7fffaf04e3c0]
[0x1]
/lib/powerpc64le-linux-gnu/libc.so.6(abort+0x1ac)[0x7fffaf0507ec]
/lib/powerpc64le-linux-gnu/libc.so.6(+0x33950)[0x7fffaf043950]
/lib/powerpc64le-linux-gnu/libc.so.6(__assert_fail+0x64)[0x7fffaf043a44]
llc(+0x9d6558)[0x10c5d6558]
llc(+0xba259c)[0x10c7a259c]
llc(+0xba3c70)[0x10c7a3c70]
llc(+0xba1938)[0x10c7a1938]
llc(_ZN4llvm19MachineFunctionPass13runOnFunctionERNS_8FunctionE+0x258)[0x10cfc0508]
llc(_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE+0x1c4)[0x10d729188]
llc(_ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE+0xac)[0x10d7293d8]
llc(+0x1b29950)[0x10d729950]
llc(_ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE+0x184)[0x10d72a2cc]
llc(_ZN4llvm6legacy11PassManager3runERNS_6ModuleE+0x38)[0x10d72a650]
llc(+0x980b70)[0x10c580b70]
llc(main+0x5cc)[0x10c57ef20]
/lib/powerpc64le-linux-gnu/libc.so.6(+0x2291c)[0x7fffaf03291c]
/lib/powerpc64le-linux-gnu/libc.so.6(__libc_start_main+0xb8)[0x7fffaf032b18]
Stack dump:
0. Program arguments: llc bugpoint-reduced-simplified.ll
1. Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.ll'.
2. Running pass 'PowerPC MI Peephole Optimization' on function
'@__alloc_pages_nodemask'
Aborted (core dumped)</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>