fallback: legalize: G_OR <N x i1>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_OR <N x i1> M |
| Occurrences: | 3 in 2 configs, 1 test files, 5 more counted only |
| Snippet from: | fixed-vectors-vfclass.ed4baf006a.ll (mutant of fixed-vectors-vfclass.ll) @isnan_v2f32 via llvm-extract |
| Config: | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh -O3 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i64
@G.1 = external global i1
define <2 x i1> @isnan_v2f32(<2 x float> %x) {
%LGV = load i64, ptr @G, align 4
%C = icmp sle i64 -9223372036854775808, %LGV
%1 = call <2 x i1> @llvm.is.fpclass.v2f32(<2 x float> %x, /* (nan inf zero nsub nnorm) */ i32 639)
store i1 %C, ptr @G.1, align 1
ret <2 x i1> %1
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i1> @llvm.is.fpclass.v2f32(<2 x float>, i32 immarg) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %56:_(<2 x i1>) = G_OR %48:_, %55:_ (in function: isnan_v2f32)
warning: Instruction selection used fallback path for isnan_v2f32
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-vfclass.c18b8934b9.ll (mutant of fixed-vectors-vfclass.ll) | isnan_v2bf16 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+experimental-zvfbfa,+zfh -O2 |
| fixed-vectors-vfclass.ed4baf006a.ll (mutant of fixed-vectors-vfclass.ll) | isnan_v2f32 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh -O3 |
| fixed-vectors-vfclass.ed4baf006a.ll (mutant of fixed-vectors-vfclass.ll) | isnormal_v2f64 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh -O3 |
Generated 2026-11-29 14:49 UTC.