<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 - ARM64 "Assertion `idx < size()' failed." in Interleaved Access Pass"
href="https://bugs.llvm.org/show_bug.cgi?id=38501">38501</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ARM64 "Assertion `idx < size()' failed." in Interleaved Access Pass
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>7.0
</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>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rakka@runbox.com
</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=20664" name="attach_20664" title="testcase">attachment 20664</a> <a href="attachment.cgi?id=20664&action=edit" title="testcase">[details]</a></span>
testcase
I'm not sure whether it's valid to use Clang's extended vectors with va_arg
macros, but it seems to work with X86 backend, and used to work with ARM64 too
(until LLVM 6). However, with LLVM 7 it crashes, so this is likely a
regression.
Compiling the attached example with 'clang -O3 -o test.o -c test.c' results in:
clang-7: /home/LLVM_700_build/llvm/include/llvm/ADT/SmallVector.h:155: T&
llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2>
<span class="quote">>::operator[](llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2>
>::size_type) [with T = int; <template-parameter-1-2> = void;</span >
llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::reference =
int&; llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::size_type
= long unsigned int]: Assertion `idx < size()' failed.
Stack dump:
0. Program arguments: /home/LLVM_700_rwdi_A_rtti/bin/clang-7 -cc1 -triple
aarch64-unknown-linux-gnu -emit-obj -disable-free -main-file-name test.c
-mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno
-masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu generic
-target-feature +neon -target-abi aapcs -fallow-half-arguments-and-returns
-dwarf-column-info -debugger-tuning=gdb -coverage-notes-file /tmp/test.gcno
-resource-dir /home/LLVM_700_rwdi_A_rtti/lib/clang/7.0.0 -internal-isystem
/usr/local/include -internal-isystem
/home/LLVM_700_rwdi_A_rtti/lib/clang/7.0.0/include -internal-externc-isystem
/usr/include/aarch64-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O3 -fdebug-compilation-dir
/home/buildslave -ferror-limit 19 -fmessage-length 157 -fno-signed-char
-fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics
-vectorize-loops -vectorize-slp -o /tmp/test.o -x c /home/buildslave/test.c
-faddrsig
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module
'/home/buildslave/test.c'.
4. Running pass 'Interleaved Access Pass' on function
'@printf_format_full'</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>