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

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

Snippet:

@G.1 = external global i16

define <8 x half> @si2fp_v8i1_v8f16(<8 x i1> %x) {
  %A = alloca i16, align 2
  store i16 poison, ptr %A, align 2
  %LGV = load i16, ptr @G.1, align 2
  %B = mul i16 %LGV, 0
  %z = sitofp <8 x i1> %x to <8 x half>
  store i16 %B, ptr %A, align 2
  ret <8 x half> %z
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %9:_(<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 (5):

InputFunctionConfig
fixed-vectors-i2fp.f24f64280e.ll (mutant of fixed-vectors-i2fp.ll)si2fp_v8i1_v8f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh,+experimental-zvfbfa,+f,+d -O3
fixed-vectors-i2fp.ff86fc64da.ll (mutant of fixed-vectors-i2fp.ll)si2fp_v8i1_v8f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh,+experimental-zvfbfa,+d -O1
fixed-vectors-sitofp-vp-mask.084aab6bcb.ll (mutant of fixed-vectors-sitofp-vp-mask.ll)vsitofp_v4f16_v4i1_unmasked-mtriple=riscv64 -mattr=+m -O0 -verify-machineinstrs
fixed-vectors-sitofp-vp-mask.7d5b932718.ll (mutant of fixed-vectors-sitofp-vp-mask.ll)vsitofp_v4f16_v4i1_unmasked-mtriple=riscv32 -mattr=+m -O1 -verify-machineinstrs
fixed-vectors-sitofp-vp-mask.e571443080.ll (mutant of fixed-vectors-sitofp-vp-mask.ll)vsitofp_v4f16_v4i1-mtriple=riscv64 -mattr=+m,+zvfh -O2 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.