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

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_INTRINSIC <N x i16>,<N x i16> M
Occurrences:4 in 4 configs, 1 test files, 3 more counted only
Snippet from:vector-interleave-fixed.73d40ec528.ll (mutant of vector-interleave-fixed.ll) @interleave4_same_nonconst_splat_v8i16 via llvm-extract
Config:-mtriple=riscv64 -mattr=+zvbb,+zvfh,+zvfbfmin,+experimental-zvzip,+zfa -O3 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <8 x i16> @interleave4_same_nonconst_splat_v8i16(i16 %a) {
  %ins = insertelement <2 x i16> poison, i16 %a, i32 0
  %splat = shufflevector <2 x i16> %ins, <2 x i16> poison, <2 x i32> zeroinitializer
  %retval = call <8 x i16> @llvm.vector.interleave4.v8i16(<2 x i16> %splat, <2 x i16> %splat, <2 x i16> %splat, <2 x i16> %splat)
  store <8 x i16> %retval, ptr poison, align 16
  ret <8 x i16> %retval
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <8 x i16> @llvm.vector.interleave4.v8i16(<2 x i16>, <2 x i16>, <2 x i16>, <2 x i16>) #0

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %7:_(<8 x i16>) = G_INTRINSIC intrinsic(@llvm.vector.interleave4), %6:_(<2 x i16>), %6:_(<2 x i16>), %6:_(<2 x i16>), %6:_(<2 x i16>) (in function: interleave4_same_nonconst_splat_v8i16)
warning: Instruction selection used fallback path for interleave4_same_nonconst_splat_v8i16

Occurrences (4):

InputFunctionConfig
vector-interleave-fixed.059e02b046.ll (mutant of vector-interleave-fixed.ll)vector_interleave6_v12i16_v2i16-mtriple=riscv64 -mattr=+zvbb,+zvfh,+zvfbfmin,+experimental-zvzip -O1 -code-model=small -verify-machineinstrs
vector-interleave-fixed.57c42534d3.ll (mutant of vector-interleave-fixed.ll)interleave4_const_splat_v8i16-mtriple=riscv32 -mattr=+zvbb,+zvfh,+zvfbfmin -O2 -code-model=medium -verify-machineinstrs
vector-interleave-fixed.73d40ec528.ll (mutant of vector-interleave-fixed.ll)interleave4_same_nonconst_splat_v8i16-mtriple=riscv64 -mattr=+zvbb,+zvfh,+zvfbfmin,+experimental-zvzip,+zfa -O3 -verify-machineinstrs
vector-interleave-fixed.b735cf5580.ll (mutant of vector-interleave-fixed.ll)interleave4_same_nonconst_splat_v8i16-mtriple=riscv32 -mattr=+zvbb,+zvfh,+zvfbfmin -O3 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.