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

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_SITOFP <N x f16>,<N x i1> M
Occurrences:6 in 5 configs, 2 test files, 7 more counted only
Snippet from:fixed-vectors-i2fp.7e8bdb8e60.ll (mutant of fixed-vectors-i2fp.ll) @si2fp_v8i1_v8f16 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh,+zvfbfmin,+f,+d,+zbb -O1
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global float

define <8 x half> @si2fp_v8i1_v8f16(<8 x i1> %x) {
  %LGV = load float, ptr @G, align 4
  %C = fcmp ult float %LGV, 4.200000e+01
  %z = sitofp <8 x i1> %x to <8 x half>
  store i1 %C, ptr poison, align 1
  ret <8 x half> %z
}

Reproduce:

llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh,+zvfbfmin,+f,+d,+zbb -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh,+zvfbfmin,+f,+d,+zbb -O1 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (6):

InputFunctionConfig
fixed-vectors-i2fp.1d10685494.ll (mutant of fixed-vectors-i2fp.ll)si2fp_v8i1_v8f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfbfmin,+f,+d -O1
fixed-vectors-i2fp.3395a02d13.ll (mutant of fixed-vectors-i2fp.ll)si2fp_v8i1_v8f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfbfmin,+f,+d -O2
fixed-vectors-i2fp.69be6d2da1.ll (mutant of fixed-vectors-i2fp.ll)si2fp_v8i1_v8f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfh,+experimental-zvfbfa,+f,+d -O2 -code-model=medium
fixed-vectors-i2fp.7e8bdb8e60.ll (mutant of fixed-vectors-i2fp.ll)si2fp_v8i1_v8f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh,+zvfbfmin,+f,+d,+zbb -O1
fixed-vectors-sitofp-vp-mask.ceb8705369.ll (mutant of fixed-vectors-sitofp-vp-mask.ll)vsitofp_v4f16_v4i1-mtriple=riscv64 -mattr=+m,+v,+zihintpause -O3 -verify-machineinstrs
fixed-vectors-sitofp-vp-mask.ceb8705369.ll (mutant of fixed-vectors-sitofp-vp-mask.ll)vsitofp_v4f16_v4i1_unmasked-mtriple=riscv64 -mattr=+m,+v,+zihintpause -O3 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.