fallback: legalize: G_EXTRACT_VECTOR_ELT <N x f16>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_EXTRACT_VECTOR_ELT <N x f16> M
Occurrences:4 in 3 configs, 3 test files, 123 more counted only
Snippet from:fixed-vectors-extract.81248e310e.ll (mutant of fixed-vectors-extract.ll) @extractelt_v8f16_idx via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+zfbfmin,+zvfbfmin,+f,+d,+zicsr -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global i128
@G.3 = external global i1

; Function Attrs: nounwind
define half @extractelt_v8f16_idx(<8 x half> %a, i32 zeroext %idx) #0 {
  %LGV = load i128, ptr @G.2, align 4
  %b = fadd <8 x half> %a, %a
  %c = extractelement <8 x half> %b, i32 %idx
  %C = icmp eq i128 %LGV, -1
  store i1 %C, ptr @G.3, align 1
  ret half %c
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

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

Occurrences (4):

InputFunctionConfig
fixed-vectors-extract.81248e310e.ll (mutant of fixed-vectors-extract.ll)extractelt_v8f16_idx-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+zfbfmin,+zvfbfmin,+f,+d,+zicsr -O1
fixed-vectors-extract.81248e310e.ll (mutant of fixed-vectors-extract.ll)extractelt_v16f16_idx-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+zfbfmin,+zvfbfmin,+f,+d,+zicsr -O1
fixed-vectors-reduction-fp.ff67f59a1d.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_fmax_v4f16_nonans-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+f,+d,+zfa -O0
fixed-vectors-vcopysign-sdnode.c530b952ad.ll (mutant of fixed-vectors-vcopysign-sdnode.ll)copysign_v32f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfhmin,+experimental-zvfbfa -O3

Generated 2026-11-29 14:49 UTC.