fallback: legalize: G_UITOFP <N x f32>,<N x i1>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_UITOFP <N x f32>,<N x i1> M
Occurrences:4 in 3 configs, 1 test files, 1 more counted only
Snippet from:fixed-vectors-uitofp-vp-mask.0ff4d9395a.ll (mutant of fixed-vectors-uitofp-vp-mask.ll) @vuitofp_v4f32_v4i1 via llvm-extract
Config:-mtriple=riscv64 -mattr=+m,+zvfh,+c -O0 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i8

define <4 x float> @vuitofp_v4f32_v4i1(<4 x i1> %va, <4 x i1> %m, i32 zeroext %evl) {
  %B = sdiv i8 -1, -128
  %v = uitofp <4 x i1> %va to <4 x float>
  store i8 %B, ptr @G, align 1
  ret <4 x float> %v
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %11:_(<4 x f32>) = G_UITOFP %0:_(<4 x i1>) (in function: vuitofp_v4f32_v4i1)
warning: Instruction selection used fallback path for vuitofp_v4f32_v4i1

Occurrences (4):

InputFunctionConfig
fixed-vectors-uitofp-vp-mask.0ff4d9395a.ll (mutant of fixed-vectors-uitofp-vp-mask.ll)vuitofp_v4f32_v4i1-mtriple=riscv64 -mattr=+m,+zvfh,+c -O0 -verify-machineinstrs
fixed-vectors-uitofp-vp-mask.70919ad497.ll (mutant of fixed-vectors-uitofp-vp-mask.ll)vuitofp_v4f32_v4i1_unmasked-mtriple=riscv64 -mattr=+m,+zvfh,+zfa -O3 -code-model=small -verify-machineinstrs
fixed-vectors-uitofp-vp-mask.8a2f1b4fa1.ll (mutant of fixed-vectors-uitofp-vp-mask.ll)vuitofp_v4f32_v4i1-mtriple=riscv32 -mattr=+m -O0 -verify-machineinstrs
fixed-vectors-uitofp-vp-mask.8a2f1b4fa1.ll (mutant of fixed-vectors-uitofp-vp-mask.ll)vuitofp_v4f32_v4i1_unmasked-mtriple=riscv32 -mattr=+m -O0 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.