[llvm-bugs] [Bug 41951] New: [AArch64] crash in isTRNMask()

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 20 13:52:40 PDT 2019


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

            Bug ID: 41951
           Summary: [AArch64] crash in isTRNMask()
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: AArch64
          Assignee: unassignedbugs at nondot.org
          Reporter: spatel+llvm at rotateright.com
                CC: arnaud.degrandmaison at arm.com,
                    llvm-bugs at lists.llvm.org, peter.smith at linaro.org,
                    Ties.Stuij at arm.com

define <4 x i32> @widen_shuffles_reduced(<3 x i32> %x, <3 x i32> %y) {
  %s3 = shufflevector <3 x i32> %y, <3 x i32> %x, <4 x i32> <i32 1, i32 4, i32
3, i32 0>
  ret <4 x i32> %s3
}


Using llc as of r361194:

$ llc -o - shuf.ll -mtriple=aarch64
        .text
        .file   "shuf.ll"
Assertion failed: (Index < Length && "Invalid index!"), function operator[],
file /Users/spatel/GitHub/llvm-project/llvm/include/llvm/ADT/ArrayRef.h, line
240.
Stack dump:
0.      Program arguments: ./llc -o - shuf.ll -mtriple=aarch64 
1.      Running pass 'Function Pass Manager' on module 'shuf.ll'.
2.      Running pass 'AArch64 Instruction Selection' on function
'@widen_shuffles_reduced'
0  llc                      0x000000010948aa58
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1  llc                      0x0000000109489948 llvm::sys::RunSignalHandlers() +
248
2  llc                      0x000000010948b078 SignalHandler(int) + 264
3  libsystem_platform.dylib 0x00007fff5c7dfb3d _sigtramp + 29
4  libsystem_platform.dylib 0x00007fb92b880810 _sigtramp + 3473542384
5  libsystem_c.dylib        0x00007fff5c69d1c9 abort + 127
6  libsystem_c.dylib        0x00007fff5c665868 basename_r + 0
7  llc                      0x00000001077c2946 isTRNMask(llvm::ArrayRef<int>,
llvm::EVT, unsigned int&) + 230
8  llc                      0x00000001077c491a
llvm::AArch64TargetLowering::isShuffleMaskLegal(llvm::ArrayRef<int>, llvm::EVT)
const + 362

-- 
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/20190520/1928a4e4/attachment.html>


More information about the llvm-bugs mailing list