[llvm-bugs] [Bug 46178] New: Assertion `idx < size()' failed in combineX86ShufflesRecursively with -O3 -march=skx

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 2 17:46:11 PDT 2020


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

            Bug ID: 46178
           Summary: Assertion `idx < size()' failed in
                    combineX86ShufflesRecursively with -O3 -march=skx
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: Vsevolod.Livinskij at frtk.ru
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

Error:
>$ clang++ -O3 -march=skx -c func.cpp
clang++: /llvm/include/llvm/ADT/SmallVector.h:176: 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.

Reproducer:

extern short a[];
void b(long d, long e[][6][70]) {
  for (int c = 0; c < 16; c += (int)d + 702798106)
    a[c] = char(e[1][2][c]);
}

LLVM version:
clang version 11.0.0 (https://github.com/llvm/llvm-project.git
16437992cac249f6fe1efd392d20e3469b47e39e)

-- 
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/20200603/75c6c17b/attachment.html>


More information about the llvm-bugs mailing list