[llvm-bugs] [Bug 50407] New: Assertion failed: (!Res && "Call operand has unhandled type"), function LowerFormalArguments, file llvm/lib/Target/AArch64/AArch64ISelLowering.cpp, line 4841.

via llvm-bugs llvm-bugs at lists.llvm.org
Wed May 19 12:47:05 PDT 2021


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

            Bug ID: 50407
           Summary: Assertion failed: (!Res && "Call operand has unhandled
                    type"), function LowerFormalArguments, file
                    llvm/lib/Target/AArch64/AArch64ISelLowering.cpp, line
                    4841.
           Product: libraries
           Version: 12.0
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: AArch64
          Assignee: unassignedbugs at nondot.org
          Reporter: nikita.shulga at gmail.com
                CC: arnaud.degrandmaison at arm.com,
                    llvm-bugs at lists.llvm.org, smithp352 at googlemail.com,
                    Ties.Stuij at arm.com

Created attachment 24875
  --> https://bugs.llvm.org/attachment.cgi?id=24875&action=edit
bugpoint simplified repro .bc

Noticed that clang-1205.0.22.9 crashes while compiling following snippet
(reduced repro from sleefsimdsp.c):
```
#include <arm_sve.h>

svint32_t vreinterpret_vi2_vf(svfloat32_t vf) {
  return __builtin_sve_reinterpret_s32_f32(vf);
}
```
Crash also reproduces in trunk and using bugpoint can be reduced to (attached):
```
; ModuleID = 'bugpoint-reduced-simplified.bc'
source_filename = "bar.cpp"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
target triple = "arm64-apple-macosx11.0.0"

define <vscale x 4 x i32> @_Z19vreinterpret_vi2_vfu13__SVFloat32_t(<vscale x 4
x float> %vf) #0 {
entry:
  ret <vscale x 4 x i32> zeroinitializer
}

attributes #0 = { "target-features"="+neon,+sve,+zcm,+zcz" }

!llvm.ident = !{!0}

!0 = !{!"clang version 13.0.0 (https://github.com/llvm/llvm-project.git
29a50c5864ddab283c1ff38694fb5926ce37b39a)"}

```

-- 
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/20210519/e4573ed8/attachment.html>


More information about the llvm-bugs mailing list