fallback: legalize: G_INTRINSIC <N x f32>,<N x i1>

Run:main-db12fc36f6-20261127-110859
Kind:fallback
Category:legalize: G_INTRINSIC <N x f32>,<N x i1>
Occurrences:14 in 4 configs, 3 test files
Snippet from:vector-extract-last-active.ll @extract_last_float via llvm-extract
Config:-mtriple=riscv32 -mattr=+v,+zvfh -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define float @extract_last_float(<4 x float> %data, <4 x i32> %mask, float %passthru) {
  %notzero = icmp ne <4 x i32> %mask, zeroinitializer
  %res = call float @llvm.experimental.vector.extract.last.active.v4f32(<4 x float> %data, <4 x i1> %notzero, float %passthru)
  ret float %res
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.experimental.vector.extract.last.active.v4f32(<4 x float>, <4 x i1>, float) #0

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %8:_(f32) = G_INTRINSIC intrinsic(@llvm.experimental.vector.extract.last.active), %0:_(<4 x f32>), %7:_(<4 x i1>), %2:_(f32) (in function: extract_last_float)
warning: Instruction selection used fallback path for extract_last_float

Occurrences (14):

InputFunctionConfig
vector-extract-last-active.llextract_last_float-mtriple=riscv32 -mattr=+v,+zvfh -verify-machineinstrs
vector-extract-last-active.llextract_last_float-mtriple=riscv64 -mattr=+v,+zvfh -verify-machineinstrs
fixed-vectors-reduction-fp-vp.4fc6fe95b2.ll (mutant of fixed-vectors-reduction-fp-vp.ll)vpreduce_fadd_v4f32-mtriple=riscv32 -mattr=+d,+zvfh,+v -target-abi=ilp32d -verify-machineinstrs
fixed-vectors-reduction-fp-vp.bc1bca4c44.ll (mutant of fixed-vectors-reduction-fp-vp.ll)vpreduce_fminimum_v4f32-mtriple=riscv64 -mattr=+d,+zvfh,+v -target-abi=lp64d -verify-machineinstrs
fixed-vectors-reduction-fp-vp.c040846264.ll (mutant of fixed-vectors-reduction-fp-vp.ll)vpreduce_fadd_v4f32-mtriple=riscv64 -mattr=+d,+zvfh,+v -target-abi=lp64d -verify-machineinstrs
fixed-vectors-reduction-fp-vp.c9869cba9f.ll (mutant of fixed-vectors-reduction-fp-vp.ll)vpreduce_fminimum_v4f32-mtriple=riscv32 -mattr=+d,+zvfh,+v -target-abi=ilp32d -verify-machineinstrs
undef-vp-ops.081126d469.ll (mutant of undef-vp-ops.ll)vreduce_fmul_v4f32_zero_evl-mtriple=riscv32 -mattr=+d,+zvfh,+v -target-abi=ilp32d -verify-machineinstrs
undef-vp-ops.314cb83169.ll (mutant of undef-vp-ops.ll)vreduce_seq_fadd_v4f32_false_mask-mtriple=riscv64 -mattr=+d,+zvfh,+v -target-abi=lp64d -verify-machineinstrs
undef-vp-ops.314cb83169.ll (mutant of undef-vp-ops.ll)vreduce_fmin_v4f32_false_mask-mtriple=riscv64 -mattr=+d,+zvfh,+v -target-abi=lp64d -verify-machineinstrs
undef-vp-ops.9ba863c70b.ll (mutant of undef-vp-ops.ll)vreduce_seq_fadd_v4f32_false_mask-mtriple=riscv32 -mattr=+d,+zvfh,+v -target-abi=ilp32d -verify-machineinstrs
undef-vp-ops.9ba863c70b.ll (mutant of undef-vp-ops.ll)vreduce_fmin_v4f32_false_mask-mtriple=riscv32 -mattr=+d,+zvfh,+v -target-abi=ilp32d -verify-machineinstrs
undef-vp-ops.e89e2a277b.ll (mutant of undef-vp-ops.ll)vreduce_fmul_v4f32_zero_evl-mtriple=riscv64 -mattr=+d,+zvfh,+v -target-abi=lp64d -verify-machineinstrs
vector-extract-last-active.6a971a8a48.ll (mutant of vector-extract-last-active.ll)extract_last_float-mtriple=riscv32 -mattr=+v,+zvfh -verify-machineinstrs
vector-extract-last-active.7759f93084.ll (mutant of vector-extract-last-active.ll)extract_last_float-mtriple=riscv64 -mattr=+v,+zvfh -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.