fallback: legalize: G_INSERT_VECTOR_ELT <N x f64>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_INSERT_VECTOR_ELT <N x f64> M
Occurrences:3 in 3 configs, 3 test files, 12 more counted only
Snippet from:fixed-vectors-sitofp-vp-mask.1a92fc3578.ll (mutant of fixed-vectors-sitofp-vp-mask.ll) @vsitofp_v4f64_v4i1_unmasked via llvm-extract
Config:-mtriple=riscv64 -mattr=+m,+zvfh,+zbb -O3 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global <4 x double>

define <4 x double> @vsitofp_v4f64_v4i1_unmasked(<4 x i1> %va, i32 zeroext %evl) {
  %v = sitofp <4 x i1> %va to <4 x double>
  %I = insertelement <4 x double> %v, double 0.000000e+00, i128 0
  store <4 x double> %I, ptr @G.1, align 32
  ret <4 x double> %v
}

Reproduce:

llc -mtriple=riscv64 -mattr=+m,+zvfh,+zbb -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+m,+zvfh,+zbb -O3 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %7:_(<4 x f64>) = G_INSERT_VECTOR_ELT %6:_, %8:_(f64), %9:_(i64) (in function: vsitofp_v4f64_v4i1_unmasked)
warning: Instruction selection used fallback path for vsitofp_v4f64_v4i1_unmasked

Occurrences (3):

InputFunctionConfig
fixed-vectors-fp-buildvec.bb613472af.ll (mutant of fixed-vectors-fp-buildvec.ll)buildvec_v8f64_zvl256-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfhmin,+f,+d,+m -O0
fixed-vectors-sitofp-vp-mask.1a92fc3578.ll (mutant of fixed-vectors-sitofp-vp-mask.ll)vsitofp_v4f64_v4i1_unmasked-mtriple=riscv64 -mattr=+m,+zvfh,+zbb -O3 -verify-machineinstrs
llvm.exp10.7b17b0485d.ll (mutant of llvm.exp10.ll)exp10_v3f64-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32d -mattr=+d -O0

Generated 2026-11-29 14:49 UTC.