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

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_UITOFP <N x f16>,<N x i1> M
Occurrences:8 in 5 configs, 1 test files, 9 more counted only
Snippet from:fixed-vectors-uitofp-vp-mask.cc2d457754.ll (mutant of fixed-vectors-uitofp-vp-mask.ll) @vuitofp_v4f16_v4i1 via llvm-extract
Config:-mtriple=riscv32 -mattr=+m -O1 -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i32

define <4 x half> @vuitofp_v4f16_v4i1(<4 x i1> %va, <4 x i1> %m, i32 zeroext %evl) {
  %LGV = load i32, ptr @G, align 4
  %v = uitofp <4 x i1> %va to <4 x half>
  %B = mul i32 %LGV, 0
  store i32 %B, ptr poison, align 4
  ret <4 x half> %v
}

Reproduce:

llc -mtriple=riscv32 -mattr=+m -O1 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+m -O1 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (8):

InputFunctionConfig
fixed-vectors-uitofp-vp-mask.39198e5b36.ll (mutant of fixed-vectors-uitofp-vp-mask.ll)vuitofp_v4f16_v4i1-mtriple=riscv32 -mattr=+m,+zvfh,+zvbb -O1 -verify-machineinstrs
fixed-vectors-uitofp-vp-mask.3964120930.ll (mutant of fixed-vectors-uitofp-vp-mask.ll)vuitofp_v4f16_v4i1-mtriple=riscv64 -mattr=+m,+v -O1 -verify-machineinstrs
fixed-vectors-uitofp-vp-mask.3964120930.ll (mutant of fixed-vectors-uitofp-vp-mask.ll)vuitofp_v4f16_v4i1_unmasked-mtriple=riscv64 -mattr=+m,+v -O1 -verify-machineinstrs
fixed-vectors-uitofp-vp-mask.5b2da94fbd.ll (mutant of fixed-vectors-uitofp-vp-mask.ll)vuitofp_v4f16_v4i1-mtriple=riscv64 -mattr=+m,+zvfh -O2 -verify-machineinstrs
fixed-vectors-uitofp-vp-mask.5b2da94fbd.ll (mutant of fixed-vectors-uitofp-vp-mask.ll)vuitofp_v4f16_v4i1_unmasked-mtriple=riscv64 -mattr=+m,+zvfh -O2 -verify-machineinstrs
fixed-vectors-uitofp-vp-mask.cc2d457754.ll (mutant of fixed-vectors-uitofp-vp-mask.ll)vuitofp_v4f16_v4i1-mtriple=riscv32 -mattr=+m -O1 -verify-machineinstrs
fixed-vectors-uitofp-vp-mask.e752948837.ll (mutant of fixed-vectors-uitofp-vp-mask.ll)vuitofp_v4f16_v4i1-mtriple=riscv32 -mattr=+m,+zvfh -O3 -verify-machineinstrs
fixed-vectors-uitofp-vp-mask.e752948837.ll (mutant of fixed-vectors-uitofp-vp-mask.ll)vuitofp_v4f16_v4i1_unmasked-mtriple=riscv32 -mattr=+m,+zvfh -O3 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.