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

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

Snippet:

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.experimental.vector.extract.last.active.v4i32(<4 x i32>, <4 x i1>, i32) #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:_(i32) = G_INTRINSIC intrinsic(@llvm.experimental.vector.extract.last.active), %0:_(<4 x i32>), %7:_(<4 x i1>), %2:_(i32) (in function: extract_last_i32)
warning: Instruction selection used fallback path for extract_last_i32

Occurrences (17) (first 15):

InputFunctionConfig
sink-splat-operands.llsink_splat_vp_udiv-mtriple=riscv64 -mattr=+m,+v,+f -target-abi=lp64f
sink-splat-operands.llsink_splat_vp_sdiv-mtriple=riscv64 -mattr=+m,+v,+f -target-abi=lp64f
sink-splat-operands.llsink_splat_vp_urem-mtriple=riscv64 -mattr=+m,+v,+f -target-abi=lp64f
sink-splat-operands.llsink_splat_vp_srem-mtriple=riscv64 -mattr=+m,+v,+f -target-abi=lp64f
sink-splat-operands.llsink_splat_vp_srem_commute-mtriple=riscv64 -mattr=+m,+v,+f -target-abi=lp64f
vector-extract-last-active.llextract_last_i32-mtriple=riscv32 -mattr=+v,+zvfh -verify-machineinstrs
vector-extract-last-active.llextract_last_i32-mtriple=riscv64 -mattr=+v,+zvfh -verify-machineinstrs
fixed-vectors-reduction-int-vp.3da2791b30.ll (mutant of fixed-vectors-reduction-int-vp.ll)vpreduce_smax_v2i32-mtriple=riscv32 -mattr=+v -verify-machineinstrs
fixed-vectors-reduction-int-vp.78cfbb9d97.ll (mutant of fixed-vectors-reduction-int-vp.ll)vpreduce_smax_v2i32-mtriple=riscv64 -mattr=+v -verify-machineinstrs
undef-vp-ops.081126d469.ll (mutant of undef-vp-ops.ll)vreduce_add_v4i32_false_mask-mtriple=riscv32 -mattr=+d,+zvfh,+v -target-abi=ilp32d -verify-machineinstrs
undef-vp-ops.081126d469.ll (mutant of undef-vp-ops.ll)vreduce_smax_v4i32_zero_evl-mtriple=riscv32 -mattr=+d,+zvfh,+v -target-abi=ilp32d -verify-machineinstrs
undef-vp-ops.41d5430bc3.ll (mutant of undef-vp-ops.ll)vreduce_umax_v4i32_zero_evl-mtriple=riscv32 -mattr=+d,+zvfh,+v -target-abi=ilp32d -verify-machineinstrs
undef-vp-ops.a48aefe5d4.ll (mutant of undef-vp-ops.ll)vreduce_umax_v4i32_zero_evl-mtriple=riscv64 -mattr=+d,+zvfh,+v -target-abi=lp64d -verify-machineinstrs
undef-vp-ops.e89e2a277b.ll (mutant of undef-vp-ops.ll)vreduce_add_v4i32_false_mask-mtriple=riscv64 -mattr=+d,+zvfh,+v -target-abi=lp64d -verify-machineinstrs
undef-vp-ops.e89e2a277b.ll (mutant of undef-vp-ops.ll)vreduce_smax_v4i32_zero_evl-mtriple=riscv64 -mattr=+d,+zvfh,+v -target-abi=lp64d -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.