fallback: legalize: G_INSERT_VECTOR_ELT <N x f64>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_INSERT_VECTOR_ELT <N x f64> M |
| Occurrences: | 3 in 3 configs, 3 test files, 23 more counted only |
| Snippet from: | fixed-vectors-masked-gather.6f08735217.ll (mutant of fixed-vectors-masked-gather.ll) @mgather_truemask_v4f64 via llvm-extract |
| Config: | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+m,+d,+zfhmin,+zvfhmin,+zfbfmin,+zvfbfmin,+zve32f,+zvl128b,+zbs,+zve32x -O0 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i8
@G.99 = external global i1
define <4 x double> @mgather_truemask_v4f64(<4 x ptr> %ptrs, <4 x double> %passthru) {
%LGV = load i8, ptr @G, align 1
%C = icmp sge i8 42, %LGV
%v = call <4 x double> @llvm.masked.gather.v4f64.v4p0(<4 x ptr> align 8 %ptrs, <4 x i1> splat (i1 true), <4 x double> %passthru)
store i1 %C, ptr @G.99, align 1
ret <4 x double> %v
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(read)
declare <4 x double> @llvm.masked.gather.v4f64.v4p0(<4 x ptr>, <4 x i1>, <4 x double>) #0
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(read) }
Reproduce:
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+m,+d,+zfhmin,+zvfhmin,+zfbfmin,+zvfbfmin,+zve32f,+zvl128b,+zbs,+zve32x -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+m,+d,+zfhmin,+zvfhmin,+zfbfmin,+zvfbfmin,+zve32f,+zvl128b,+zbs,+zve32x -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %27:_(<4 x f64>) = G_INSERT_VECTOR_ELT %23:_, %26:_(f64), %25:_(i64) (in function: mgather_truemask_v4f64)
warning: Instruction selection used fallback path for mgather_truemask_v4f64
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-fp-buildvec.c9f67621a4.ll (mutant of fixed-vectors-fp-buildvec.ll) | buildvec_v2f64_b | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zfhmin,+zvfhmin,+f -O0 -code-model=medium |
| fixed-vectors-fp.f4a3dbd6d0.ll (mutant of fixed-vectors-fp.ll) | fma_v2f64 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin,+d -O0 |
| fixed-vectors-masked-gather.6f08735217.ll (mutant of fixed-vectors-masked-gather.ll) | mgather_truemask_v4f64 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+m,+d,+zfhmin,+zvfhmin,+zfbfmin,+zvfbfmin,+zve32f,+zvl128b,+zbs,+zve32x -O0 |
Generated 2026-11-29 14:49 UTC.