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

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_FPTOUI <N x i64>,<N x f16> M
Occurrences:5 in 5 configs, 2 test files, 16 more counted only
Snippet from:fixed-vectors-fptoui-vp.42b64c9a45.ll (mutant of fixed-vectors-fptoui-vp.ll) @vfptoui_v4i64_v4f16_unmasked via llvm-extract
Config:-mtriple=riscv64 -mattr=+m,+zvfhmin -O2 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i32

define <4 x i64> @vfptoui_v4i64_v4f16_unmasked(<4 x half> %va, i32 zeroext %evl) {
  %B = urem i32 %evl, 1
  %v = fptoui <4 x half> %va to <4 x i64>
  store i32 %B, ptr @G.1, align 4
  ret <4 x i64> %v
}

Reproduce:

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

Local llc output:

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

Occurrences (5):

InputFunctionConfig
fixed-vectors-fp2i.32f61dd587.ll (mutant of fixed-vectors-fp2i.ll)fp2ui_v2f16_v2i64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d,+zbb -O1
fixed-vectors-fp2i.4338414a81.ll (mutant of fixed-vectors-fp2i.ll)fp2ui_v2f16_v2i64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O0
fixed-vectors-fp2i.e4de61dbdf.ll (mutant of fixed-vectors-fp2i.ll)fp2ui_v2f16_v2i64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O1 -code-model=medium
fixed-vectors-fptoui-vp.42b64c9a45.ll (mutant of fixed-vectors-fptoui-vp.ll)vfptoui_v4i64_v4f16_unmasked-mtriple=riscv64 -mattr=+m,+zvfhmin -O2 -verify-machineinstrs
fixed-vectors-fptoui-vp.aa90df70c6.ll (mutant of fixed-vectors-fptoui-vp.ll)vfptoui_v4i64_v4f16-mtriple=riscv64 -mattr=+m,+zvfhmin -O1 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.