fallback: legalize: G_EXTRACT_VECTOR_ELT <N x f16>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_EXTRACT_VECTOR_ELT <N x f16> M
Occurrences:5 in 5 configs, 5 test files, 68 more counted only
Snippet from:fixed-vectors-uitofp-vp-mask.70919ad497.ll (mutant of fixed-vectors-uitofp-vp-mask.ll) @vuitofp_v4f16_v4i1_unmasked via llvm-extract
Config:-mtriple=riscv64 -mattr=+m,+zvfh,+zfa -O3 -code-model=small -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global half

define <4 x half> @vuitofp_v4f16_v4i1_unmasked(<4 x i1> %va, i32 zeroext %evl) {
  %v = uitofp <4 x i1> %va to <4 x half>
  %E = extractelement <4 x half> %v, i32 %evl
  store half %E, ptr @G.1, align 2
  ret <4 x half> %v
}

Reproduce:

llc -mtriple=riscv64 -mattr=+m,+zvfh,+zfa -O3 -code-model=small -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+m,+zvfh,+zfa -O3 -code-model=small -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %7:_(f16) = G_EXTRACT_VECTOR_ELT %6:_(<4 x f16>), %5:_(i64) (in function: vuitofp_v4f16_v4i1_unmasked)
warning: Instruction selection used fallback path for vuitofp_v4f16_v4i1_unmasked

Occurrences (5):

InputFunctionConfig
fixed-vectors-compressstore-fp.41ca5a4f98.ll (mutant of fixed-vectors-compressstore-fp.ll)compressstore_v4f16-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+f,+d,+zvfh,+zicsr -O0
fixed-vectors-extract.3a6fa6598c.ll (mutant of fixed-vectors-extract.ll)extractelt_v16f16_idx-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+zfbfmin,+zvfbfmin,+f,+d -O0
fixed-vectors-uitofp-vp-mask.70919ad497.ll (mutant of fixed-vectors-uitofp-vp-mask.ll)vuitofp_v4f16_v4i1_unmasked-mtriple=riscv64 -mattr=+m,+zvfh,+zfa -O3 -code-model=small -verify-machineinstrs
fixed-vectors-vfsub-constrained-sdnode.0ac631ed76.ll (mutant of fixed-vectors-vfsub-constrained-sdnode.ll)vfsub_vf_v4f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zfhmin,+experimental-zvfbfa,+v -O2
fp-fcanonicalize.3b3d0b9baf.ll (mutant of fp-fcanonicalize.ll)fcanonicalize_v2f16_nnan--mtriple=riscv64 -mattr=+d,+zfh -O0 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.