[llvm-bugs] [Bug 50057] New: Cannot select: t10: i64 = AArch64ISD::VSHL t2, Constant:i32<2>

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Apr 21 07:00:42 PDT 2021


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

            Bug ID: 50057
           Summary: Cannot select: t10: i64 = AArch64ISD::VSHL t2,
                    Constant:i32<2>
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: AArch64
          Assignee: unassignedbugs at nondot.org
          Reporter: amanieu at gmail.com
                CC: arnaud.degrandmaison at arm.com,
                    llvm-bugs at lists.llvm.org, smithp352 at googlemail.com,
                    Ties.Stuij at arm.com

$ cat test.ll
define i64 @foo(i64 %0) {
  %2 = tail call i64 @llvm.aarch64.neon.ushl.i64(i64 %0, i64 2) 
  ret i64 %2
}

declare i64 @llvm.aarch64.neon.ushl.i64(i64, i64)

$ llc -march=aarch64 test.ll
LLVM ERROR: Cannot select: t10: i64 = AArch64ISD::VSHL t2, Constant:i32<2>
  t2: i64,ch = CopyFromReg t0, Register:i64 %0
    t1: i64 = Register %0
  t9: i32 = Constant<2>
In function: foo

This IR is produced by calling the vshld_u64 NEON intrinsic from Clang. The
error only happens if the second argument (the shift) is a constant.

-- 
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/20210421/b46d4d1e/attachment.html>


More information about the llvm-bugs mailing list