[llvm-bugs] [Bug 47320] New: [AArch64] SDAG crash on rotate legalization

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 26 12:08:45 PDT 2020


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

            Bug ID: 47320
           Summary: [AArch64] SDAG crash on rotate legalization
           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, smithp352 at googlemail.com,
                    Ties.Stuij at arm.com

I noticed this on https://reviews.llvm.org/D86601, but it's a different bug:

define <2 x i16> @rotate_v2i16(<2 x i16> %x, <2 x i16> %amt) nounwind {
  %res = call <2 x i16> @llvm.fshr.v2i16(<2 x i16> %x, <2 x i16> %x, <2 x i16>
%amt)
  ret <2 x i16> %res
}

declare <2 x i16> @llvm.fshr.v2i16(<2 x i16>, <2 x i16>, <2 x i16>)

$ llc -o - rot.ll -mtriple=aarch64 
        .text
        .file   "rot.ll"
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0.      Program arguments: ./llc -o - rot.ll -mtriple=aarch64 
1.      Running pass 'Function Pass Manager' on module 'rot.ll'.
2.      Running pass 'AArch64 Instruction Selection' on function
'@var_funnnel_v2i16'
0  llc                      0x000000010b9ef778
llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 40
1  llc                      0x000000010b9ee508 llvm::sys::RunSignalHandlers() +
248
2  llc                      0x000000010b9efd8c SignalHandler(int) + 268
3  libsystem_platform.dylib 0x00007fff6a6725fd _sigtramp + 29
4  libsystem_platform.dylib 0x0000000000000010 _sigtramp + 18446603338731018800
5  llc                      0x000000010b773793
llvm::DAGTypeLegalizer::ReplaceValueWith(llvm::SDValue, llvm::SDValue) + 67
6  llc                      0x000000010b749e30
llvm::DAGTypeLegalizer::PromoteIntegerResult(llvm::SDNode*, unsigned int) + 784
7  llc                      0x000000010b772cd8 llvm::DAGTypeLegalizer::run() +
2808
8  llc                      0x000000010b7784ee
llvm::SelectionDAG::LegalizeTypes() + 1438
9  llc                      0x000000010b885869
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 1897

-- 
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/20200826/92c07394/attachment.html>


More information about the llvm-bugs mailing list