<html>
<head>
<base href="https://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 --- - Compiler flags' combination leads to segfault"
href="https://llvm.org/bugs/show_bug.cgi?id=26882">26882</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Compiler flags' combination leads to segfault
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>3.8
</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: ARM
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tulipawn@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>It seems explicit cpu and interleave values don't go too well together.
$ rustc -O -C target-cpu=cortex-a5 -C
llvm-args=-force-target-max-vector-interleave=0 main.rs
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb2eb52a0 (LWP 28076)]
0xb3576404 in llvm::IRBuilder<true, llvm::ConstantFolder,
llvm::IRBuilderDefaultInserter<true> >::CreateExtractElement(llvm::Value*,
llvm::Value*, llvm::Twine const&) ()
from /home/odroid/rust-nightly-sysalloc/bin/../lib/librustc_llvm-9026086f.so
(gdb) bt
#0 0xb3576404 in llvm::IRBuilder<true, llvm::ConstantFolder,
llvm::IRBuilderDefaultInserter<true> >::CreateExtractElement(llvm::Value*,
llvm::Value*, llvm::Twine const&) ()
from /home/odroid/rust-nightly-sysalloc/bin/../lib/librustc_llvm-9026086f.so
#1 0xb3585c14 in (anonymous
namespace)::InnerLoopVectorizer::vectorizeMemoryInstruction(llvm::Instruction*)
() from /home/odroid/rust-nightly-sysalloc/bin/../lib/librustc_llvm-9026086f.so
#2 0xb3583dfc in (anonymous
namespace)::InnerLoopVectorizer::vectorizeBlockInLoop(llvm::BasicBlock*,
llvm::SmallVector<llvm::PHINode*, 4u>*) ()
from /home/odroid/rust-nightly-sysalloc/bin/../lib/librustc_llvm-9026086f.so
#3 0xb35889a8 in (anonymous namespace)::InnerLoopVectorizer::vectorizeLoop()
()
from /home/odroid/rust-nightly-sysalloc/bin/../lib/librustc_llvm-9026086f.so
#4 0xb358c7c8 in (anonymous
namespace)::LoopVectorize::processLoop(llvm::Loop*) ()
from /home/odroid/rust-nightly-sysalloc/bin/../lib/librustc_llvm-9026086f.so
#5 0xaf904680 in ?? ()
Not using an explicit -mcpu doesn't lead to the crash even with
`force-target-max-vector-interleave` set to zero. While that particular value
might not make much sense it should be handled more gracefully :)</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>