fallback: legalize: G_FPTOSI <N x i32>,<N x f16>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_FPTOSI <N x i32>,<N x f16> M
Occurrences:4 in 4 configs, 1 test files, 1 more counted only
Snippet from:fixed-vectors-fptosi-vp.3e1b6e6688.ll (mutant of fixed-vectors-fptosi-vp.ll) @vfptosi_v4i32_v4f16_unmasked via llvm-extract
Config:-mtriple=riscv32 -mattr=+m,+zvfh -O0 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i1

define <4 x i32> @vfptosi_v4i32_v4f16_unmasked(<4 x half> %va, i32 zeroext %evl) {
  %LGV = load i1, ptr @G.1, align 1
  %v = fptosi <4 x half> %va to <4 x i32>
  %B = shl i1 false, %LGV
  store i1 %B, ptr @G.1, align 1
  ret <4 x i32> %v
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %9:_(<4 x i32>) = G_FPTOSI %0:_(<4 x f16>) (in function: vfptosi_v4i32_v4f16_unmasked)
warning: Instruction selection used fallback path for vfptosi_v4i32_v4f16_unmasked

Occurrences (4):

InputFunctionConfig
fixed-vectors-fptosi-vp.14739fc943.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i32_v4f16_unmasked-mtriple=riscv64 -mattr=+m,+zvfh -O0 -verify-machineinstrs
fixed-vectors-fptosi-vp.3e1b6e6688.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i32_v4f16_unmasked-mtriple=riscv32 -mattr=+m,+zvfh -O0 -verify-machineinstrs
fixed-vectors-fptosi-vp.c8caa2d8b1.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i32_v4f16_unmasked-mtriple=riscv64 -mattr=+m,+zvfh -O1 -code-model=medium -verify-machineinstrs
fixed-vectors-fptosi-vp.fbd4e8a7dd.ll (mutant of fixed-vectors-fptosi-vp.ll)vfptosi_v4i32_v4f16-mtriple=riscv32 -mattr=+m,+zvfh,+zbb -O3 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.