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: unassignedb...@nondot.org
          Reporter: nikita.shu...@gmail.com
                CC: arnaud.degrandmai...@arm.com,
                    llvm-bugs@lists.llvm.org, smithp...@googlemail.com,
                    ties.st...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to