[llvm-bugs] [Bug 38501] New: ARM64 "Assertion `idx < size()' failed." in Interleaved Access Pass

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 9 07:06:34 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38501

            Bug ID: 38501
           Summary: ARM64 "Assertion `idx < size()' failed." in
                    Interleaved Access Pass
           Product: new-bugs
           Version: 7.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: rakka at runbox.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 20664
  --> https://bugs.llvm.org/attachment.cgi?id=20664&action=edit
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>
>::operator[](llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2>
>::size_type) [with T = int; <template-parameter-1-2> = void;
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'

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180809/d611b7ff/attachment.html>


More information about the llvm-bugs mailing list