fallback: legalize: G_FPTOUI <N x i16>,<N x f16>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_FPTOUI <N x i16>,<N x f16> M
Occurrences:5 in 5 configs, 2 test files, 19 more counted only
Snippet from:fixed-vectors-fptoui-vp.aab7bdb975.ll (mutant of fixed-vectors-fptoui-vp.ll) @vfptoui_v4i16_v4f16_unmasked via llvm-extract
Config:-mtriple=riscv32 -mattr=+m,+zvfhmin,+zbs -O1 -code-model=small -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <4 x i16> @vfptoui_v4i16_v4f16_unmasked(<4 x half> %va, i32 zeroext %evl) {
  %B = and i32 %evl, 65536
  %v = fptoui <4 x half> %va to <4 x i16>
  store i32 %B, ptr poison, align 4
  ret <4 x i16> %v
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %6:_(<4 x i16>) = G_FPTOUI %0:_(<4 x f16>) (in function: vfptoui_v4i16_v4f16_unmasked)
warning: Instruction selection used fallback path for vfptoui_v4i16_v4f16_unmasked

Occurrences (5):

InputFunctionConfig
fixed-vectors-fp2i.08c76be337.ll (mutant of fixed-vectors-fp2i.ll)fp2ui_v64f16_v64i16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O1
fixed-vectors-fp2i.3c8b18184f.ll (mutant of fixed-vectors-fp2i.ll)fp2ui_v64f16_v64i16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d -O1
fixed-vectors-fp2i.f99db5e92f.ll (mutant of fixed-vectors-fp2i.ll)fp2ui_v64f16_v64i16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfbfmin,+f -O3 -code-model=small
fixed-vectors-fptoui-vp.aab7bdb975.ll (mutant of fixed-vectors-fptoui-vp.ll)vfptoui_v4i16_v4f16_unmasked-mtriple=riscv32 -mattr=+m,+zvfhmin,+zbs -O1 -code-model=small -verify-machineinstrs
fixed-vectors-fptoui-vp.c0c6b71d8c.ll (mutant of fixed-vectors-fptoui-vp.ll)vfptoui_v4i16_v4f16_unmasked-mtriple=riscv32 -mattr=+m,+zvfhmin -O2 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.