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

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_INTRINSIC <N x i32>,<N x i32> M
Occurrences:8 in 7 configs, 4 test files, 85 more counted only
Snippet from:fixed-vectors-zvdot4a8i.cccfe1fb2a.ll (mutant of fixed-vectors-zvdot4a8i.ll) @partial_of_zext via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -O1
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <4 x i32> @partial_of_zext(<16 x i8> %a) {
entry:
  %a.ext = zext <16 x i8> %a to <16 x i32>
  %B = fsub float 0.000000e+00, f0x7F7FFFFF
  %res = call <4 x i32> @llvm.vector.partial.reduce.add.v4i32.v16i32(<4 x i32> zeroinitializer, <16 x i32> %a.ext)
  store float %B, ptr poison, align 4
  ret <4 x i32> %res
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x i32> @llvm.vector.partial.reduce.add.v4i32.v16i32(<4 x i32>, <16 x i32>) #0

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

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -O1 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %7:_(<4 x i32>) = G_INTRINSIC intrinsic(@llvm.vector.partial.reduce.add), %8:_(<4 x i32>), %3:_(<16 x i32>) (in function: partial_of_zext)
warning: Instruction selection used fallback path for partial_of_zext

Occurrences (8):

InputFunctionConfig
fixed-vectors-interleave-store.13ca57e93b.ll (mutant of fixed-vectors-interleave-store.ll)vector_interleave_store_factor6-mtriple=riscv32 -mattr=+v,+zvfh,+zvfbfmin,+f -O0 -code-model=small -verify-machineinstrs
fixed-vectors-interleave-store.d643fb2339.ll (mutant of fixed-vectors-interleave-store.ll)vector_interleave_store_factor5-mtriple=riscv64 -mattr=+v,+zvfh,+zvfbfmin -O0 -verify-machineinstrs
fixed-vectors-interleave-store.d643fb2339.ll (mutant of fixed-vectors-interleave-store.ll)vector_interleave_store_factor7-mtriple=riscv64 -mattr=+v,+zvfh,+zvfbfmin -O0 -verify-machineinstrs
fixed-vectors-interleaved-access.1a50fead68.ll (mutant of fixed-vectors-interleaved-access.ll)gap_mask_single_field_vpload_factor4_intrinsics-mtriple=riscv32 -mattr=+m -O2 -verify-machineinstrs
fixed-vectors-zvdot4a8i.01f62a5461.ll (mutant of fixed-vectors-zvdot4a8i.ll)vdot4a_vv_partial_reduce_v4i32_v16i8-mtriple=riscv64 -verify-machineinstrs -mattr=+zcb -O2
fixed-vectors-zvdot4a8i.a85e06611a.ll (mutant of fixed-vectors-zvdot4a8i.ll)vdot4asu_vv_partial_v64i32_v256i8-mtriple=riscv64 -verify-machineinstrs -mattr=+zvbb -O2
fixed-vectors-zvdot4a8i.cccfe1fb2a.ll (mutant of fixed-vectors-zvdot4a8i.ll)partial_of_zext-mtriple=riscv32 -verify-machineinstrs -O1
vector-interleave-fixed.00f2794de9.ll (mutant of vector-interleave-fixed.ll)vector_interleave4_v8i32_v2i32-mtriple=riscv32 -mattr=+zvbb,+zvfh -O2 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.