| Issue |
233368
|
| Summary |
[AArch64] llc crashes on llvm.aarch64.sve.ld1.gather.nxv4i32 with 64-bit offsets
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
dongjianqiang2
|
```llvm
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "aarch64-linux-gnu"
declare <vscale x 4 x i32> @llvm.aarch64.sve.ld1.gather.nxv4i32(<vscale x 4 x i1>, ptr, <vscale x 4 x i64>)
define <vscale x 4 x i32> @f(<vscale x 4 x i1> %pg, ptr %p, <vscale x 4 x i64> %ofs) {
%r = call <vscale x 4 x i32> @llvm.aarch64.sve.ld1.gather.nxv4i32(<vscale x 4 x i1> %pg, ptr %p, <vscale x 4 x i64> %ofs)
ret <vscale x 4 x i32> %r
}
```
```
$ llc -mtriple=aarch64 -mattr=+sve t.ll
Stack dump:
#4 llvm::AArch64TargetLowering::LowerVECTOR_SHUFFLE(llvm::SDValue, llvm::SelectionDAG&)
```
https://godbolt.org/z/E1K3zKvYa
The 2-lane form (<vscale x 2 x i32> with <vscale x 2 x i64> offsets) and the uxtw form compile fine. Clang cannot reach the crashing form (ACLE uses 32-bit offsets for 32-bit data, and the auto-vectorizer's llvm.masked.gather lowers the same nxv4i32/nxv4i64 shape correctly by splitting it into two single-register gathers).
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs