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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_INTRINSIC <N x i32>,<N x i32> M
Occurrences:9 in 8 configs, 3 test files, 88 more counted only
Snippet from:fixed-vectors-interleave-store.5c09a8a919.ll (mutant of fixed-vectors-interleave-store.ll) @vector_interleave_store_factor3 via llvm-extract
Config:-mtriple=riscv64 -mattr=+zvfh,+zvfbfmin,+zvkb -O3 -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define void @vector_interleave_store_factor3(<4 x i32> %a, <4 x i32> %b, <4 x i32> %c, ptr %p) {
  %B = lshr <4 x i32> %c, splat (i32 2147483647)
  %v = call <12 x i32> @llvm.vector.interleave3.v12i32(<4 x i32> %a, <4 x i32> %b, <4 x i32> %c)
  store <12 x i32> %v, ptr %p, align 64
  store <4 x i32> %B, ptr poison, align 16
  %G = getelementptr <12 x i32>, ptr %p, i32 65536
  store ptr %G, ptr poison, align 8
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <12 x i32> @llvm.vector.interleave3.v12i32(<4 x i32>, <4 x i32>, <4 x i32>) #0

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %10:_(<12 x i32>) = G_INTRINSIC intrinsic(@llvm.vector.interleave3), %0:_(<4 x i32>), %1:_(<4 x i32>), %2:_(<4 x i32>) (in function: vector_interleave_store_factor3)
warning: Instruction selection used fallback path for vector_interleave_store_factor3

Occurrences (9):

InputFunctionConfig
fixed-vectors-interleave-store.5c09a8a919.ll (mutant of fixed-vectors-interleave-store.ll)vector_interleave_store_factor3-mtriple=riscv64 -mattr=+zvfh,+zvfbfmin,+zvkb -O3 -verify-machineinstrs
fixed-vectors-interleave-store.b63f3356ee.ll (mutant of fixed-vectors-interleave-store.ll)vector_interleave_store_factor7-mtriple=riscv64 -mattr=+v,+zvfhmin,+zvfbfmin -O0 -verify-machineinstrs
fixed-vectors-zvdot4a8i.0e705f66f1.ll (mutant of fixed-vectors-zvdot4a8i.ll)partial_of_sext-mtriple=riscv32 -verify-machineinstrs -O1
fixed-vectors-zvdot4a8i.5a4c4cb083.ll (mutant of fixed-vectors-zvdot4a8i.ll)vdot4a_vv_partial_reduce_v2i32_v64i8-mtriple=riscv32 -verify-machineinstrs -mattr=+experimental-zvdot4a8i,+zfa -O3
fixed-vectors-zvdot4a8i.62844163a6.ll (mutant of fixed-vectors-zvdot4a8i.ll)vdot4a_vv_partial_reduce_m1_accum-mtriple=riscv32 -verify-machineinstrs -mattr=+experimental-zvdot4a8i,+zve32x -O0
fixed-vectors-zvdot4a8i.77729bea33.ll (mutant of fixed-vectors-zvdot4a8i.ll)vdot4a_vv_partial_reduce_v4i32_v16i8-mtriple=riscv64 -verify-machineinstrs -O3
vector-deinterleave-fixed.37f139ebe4.ll (mutant of vector-deinterleave-fixed.ll)vector_deinterleave3_v3i32_v9i32-mtriple=riscv64 -mattr=+m,+zvfh,+zvfbfmin,+a -O3 -code-model=medium -verify-machineinstrs
vector-deinterleave-fixed.b1e5138613.ll (mutant of vector-deinterleave-fixed.ll)vector_deinterleave3_v2i32_v6i32-mtriple=riscv64 -mattr=+m,+zvfh,+zvfbfmin -O2 -verify-machineinstrs
vector-deinterleave-fixed.b1e5138613.ll (mutant of vector-deinterleave-fixed.ll)vector_deinterleave4_v2i32_v8i32-mtriple=riscv64 -mattr=+m,+zvfh,+zvfbfmin -O2 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.