Issue 172483
Summary [AArch64] Possible incorrect use of EVT::getVectorNumElements()
Labels backend:AArch64, SVE, crash-on-valid
Assignees
Reporter alexey-bataev
    https://godbolt.org/z/YT9n9h45c

```
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-unknown-linux-gnu"

define <vscale x 4 x float> @test(<vscale x 4 x float> %0) #0 {
iter.check122:
  %1 = frem <vscale x 4 x float> %0, zeroinitializer
  ret <vscale x 4 x float> %1
}

attributes #0 = { "target-cpu"="neoverse-v2" }

```
```
llc -disable-symbolication < reduced.ll
LLVM ERROR: Possible incorrect use of EVT::getVectorNumElements() for scalable vector. Scalable flag may be dropped, use EVT::getVectorElementCount() instead
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to