Issue |
120621
|
Summary |
[GlobalISel][AArch64] LLVM ERROR: unable to legalize instruction: %37:_(s32) = G_ZEXT %11:_(s1)
|
Labels |
backend:AArch64,
llvm:globalisel,
llvm:crash,
crash-on-valid
|
Assignees |
|
Reporter |
fhahn
|
`llc -global-isel` on the IR below crashes with `LLVM ERROR: unable to legalize instruction: %37:_(s32) = G_ZEXT %11:_(s1) `
https://llvm.godbolt.org/z/bYKo9eTvc
```
target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx15.0.0"
define fastcc i32 @foo(<4 x double> %x) {
entry:
%0 = fcmp ogt <4 x double> %x, zeroinitializer
%1 = bitcast <4 x i1> %0 to i4
%2 = zext i4 %1 to i32
ret i32 %2
}
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs