<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 - Assertion failure generating thumbv6 code: -- Assertion `TLI.isTypeLegal(HalfType)' failed."
href="https://bugs.llvm.org/show_bug.cgi?id=37382">37382</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failure generating thumbv6 code: -- Assertion `TLI.isTypeLegal(HalfType)' failed.
</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>Windows NT
</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: ARM
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>alex@crichton.co
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=20273" name="attach_20273" title="IR">attachment 20273</a> <a href="attachment.cgi?id=20273&action=edit" title="IR">[details]</a></span>
IR
When attempting to compile the attached IR (reduced with bugpoint) with `llc`
it yields:
$ llc foo.ll -filetype=obj -O0
llc:
/home/alex/code/rust2/src/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:3432:
bool {anonymous}::SelectionDAGLegalize::ExpandNode(llvm::SDNode*): Assertion
`TLI.isTypeLegal(HalfType)' failed.
Stack dump:
0. Program arguments: ./build/x86_64-unknown-linux-gnu/llvm/bin/llc
-filetype=obj -O0 bugpoint-reduced-simplified.ll
1. Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.ll'.
2. Running pass 'ARM Instruction Selection' on function
'@_ZN3lib3ptr19swap_nonoverlapping17he2ab85414b948373E'
#0 0x00007f202a6e7dda llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/alex/code/rust2/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-7svn.so+0x8f8dda)
#1 0x00007f202a6e5b7e llvm::sys::RunSignalHandlers()
(/home/alex/code/rust2/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-7svn.so+0x8f6b7e)
#2 0x00007f202a6e5cf2 SignalHandler(int)
(/home/alex/code/rust2/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-7svn.so+0x8f6cf2)
#3 0x00007f20296d84b0 (/lib/x86_64-linux-gnu/libc.so.6+0x354b0)
#4 0x00007f20296d8428 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x35428)
#5 0x00007f20296da02a abort (/lib/x86_64-linux-gnu/libc.so.6+0x3702a)
#6 0x00007f20296d0bd7 (/lib/x86_64-linux-gnu/libc.so.6+0x2dbd7)
#7 0x00007f20296d0c82 (/lib/x86_64-linux-gnu/libc.so.6+0x2dc82)
#8 0x00007f202acc83a2 (anonymous
namespace)::SelectionDAGLegalize::ExpandNode(llvm::SDNode*)
(/home/alex/code/rust2/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-7svn.so+0xed93a2)
#9 0x00007f202acb5041 (anonymous
namespace)::SelectionDAGLegalize::LegalizeOp(llvm::SDNode*) (.part.276)
(/home/alex/code/rust2/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-7svn.so+0xec6041)
#10 0x00007f202acc8952 llvm::SelectionDAG::Legalize()
(/home/alex/code/rust2/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-7svn.so+0xed9952)
#11 0x00007f202adee224 llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(/home/alex/code/rust2/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-7svn.so+0xfff224)
#12 0x00007f202adf3e6a
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/home/alex/code/rust2/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-7svn.so+0x1004e6a)
#13 0x00007f202adf608c
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(.part.875.constprop.898)
(/home/alex/code/rust2/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-7svn.so+0x100708c)
#14 0x00007f202bdc79d4 (anonymous
namespace)::ARMDAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/home/alex/code/rust2/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-7svn.so+0x1fd89d4)
#15 0x00007f202a9fc375
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/home/alex/code/rust2/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-7svn.so+0xc0d375)
#16 0x00007f202a7f4403 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/alex/code/rust2/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-7svn.so+0xa05403)
#17 0x00007f202a7f44cc llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/alex/code/rust2/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-7svn.so+0xa054cc)
#18 0x00007f202a7f3f6d llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/alex/code/rust2/build/x86_64-unknown-linux-gnu/llvm/bin/../lib/libLLVM-7svn.so+0xa04f6d)
#19 0x00000000004196a0 compileModule(char**, llvm::LLVMContext&)
(.constprop.391) (./build/x86_64-unknown-linux-gnu/llvm/bin/llc+0x4196a0)
#20 0x000000000040c266 main
(./build/x86_64-unknown-linux-gnu/llvm/bin/llc+0x40c266)
#21 0x00007f20296c3830 __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x20830)
#22 0x000000000040c409 _start
(./build/x86_64-unknown-linux-gnu/llvm/bin/llc+0x40c409)</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>