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

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_INTRINSIC <N x i32>,<N x i32> M
Occurrences:8 in 8 configs, 4 test files, 42 more counted only
Snippet from:fixed-vectors-interleave-store.4b57f35cad.ll (mutant of fixed-vectors-interleave-store.ll) @vector_interleave_store_factor3 via llvm-extract
Config:-mtriple=riscv64 -mattr=+v,+zvfh,+zvfbfmin,+zbs -O0 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global ptr

define void @vector_interleave_store_factor3(<4 x i32> %a, <4 x i32> %b, <4 x i32> %c, ptr %p) {
  %v = call <12 x i32> @llvm.vector.interleave3.v12i32(<4 x i32> %a, <4 x i32> %b, <4 x i32> %c)
  %G = getelementptr ptr, ptr %p, i128 0
  store <12 x i32> %v, ptr %p, align 64
  store ptr %G, ptr @G.1, 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=+v,+zvfh,+zvfbfmin,+zbs -O0 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+v,+zvfh,+zvfbfmin,+zbs -O0 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %7:_(<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 (8):

InputFunctionConfig
fixed-vectors-interleave-store.01e295be07.ll (mutant of fixed-vectors-interleave-store.ll)vector_interleave_store_factor5-mtriple=riscv32 -mattr=+v,+zvfhmin,+zvfbfmin -O0 -verify-machineinstrs
fixed-vectors-interleave-store.342c7f2305.ll (mutant of fixed-vectors-interleave-store.ll)vector_interleave_store_factor6-mtriple=riscv64 -mattr=+zvfhmin,+zvfbfmin,+zve32x -O1 -verify-machineinstrs
fixed-vectors-interleave-store.4b57f35cad.ll (mutant of fixed-vectors-interleave-store.ll)vector_interleave_store_factor3-mtriple=riscv64 -mattr=+v,+zvfh,+zvfbfmin,+zbs -O0 -verify-machineinstrs
fixed-vectors-zvdot4a8i.b2c1a186bc.ll (mutant of fixed-vectors-zvdot4a8i.ll)vdot4a_vv_partial_reduce_m1_accum-mtriple=riscv64 -verify-machineinstrs -O3
vector-deinterleave-fixed.46a1103abd.ll (mutant of vector-deinterleave-fixed.ll)vector_deinterleave3_v2i32_v6i32-mtriple=riscv32 -mattr=+m,+zvfh,+zvfbfmin -O2 -code-model=small -verify-machineinstrs
vector-deinterleave-fixed.bdbf94a787.ll (mutant of vector-deinterleave-fixed.ll)vector_deinterleave3_v15i32_v45i32-mtriple=riscv64 -mattr=+m,+zvfh -O1 -verify-machineinstrs
vector-interleave-fixed.059e02b046.ll (mutant of vector-interleave-fixed.ll)vector_interleave3_v6i32_v2i32-mtriple=riscv64 -mattr=+zvbb,+zvfh,+zvfbfmin,+experimental-zvzip -O1 -code-model=small -verify-machineinstrs
vector-interleave-fixed.73d40ec528.ll (mutant of vector-interleave-fixed.ll)vector_interleave3_v6i32_v2i32-mtriple=riscv64 -mattr=+zvbb,+zvfh,+zvfbfmin,+experimental-zvzip,+zfa -O3 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.