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

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_INTRINSIC <N x bf16>,<N x bf16> M
Occurrences:4 in 4 configs, 2 test files, 1 more counted only
Snippet from:vector-deinterleave-fixed.bdbf94a787.ll (mutant of vector-deinterleave-fixed.ll) @vector_deinterleave6_v12bf16_v2bf16 via llvm-extract
Config:-mtriple=riscv64 -mattr=+m,+zvfh -O1 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i32

define { <2 x bfloat>, <2 x bfloat>, <2 x bfloat>, <2 x bfloat>, <2 x bfloat>, <2 x bfloat> } @vector_deinterleave6_v12bf16_v2bf16(<12 x bfloat> %v) {
  %B = urem i32 0, -2147483648
  %res = call { <2 x bfloat>, <2 x bfloat>, <2 x bfloat>, <2 x bfloat>, <2 x bfloat>, <2 x bfloat> } @llvm.vector.deinterleave6.v12bf16(<12 x bfloat> %v)
  store i32 %B, ptr @G.1, align 4
  ret { <2 x bfloat>, <2 x bfloat>, <2 x bfloat>, <2 x bfloat>, <2 x bfloat>, <2 x bfloat> } %res
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { <2 x bfloat>, <2 x bfloat>, <2 x bfloat>, <2 x bfloat>, <2 x bfloat>, <2 x bfloat> } @llvm.vector.deinterleave6.v12bf16(<12 x bfloat>) #0

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %22:_(<2 x bf16>), %23:_(<2 x bf16>), %24:_(<2 x bf16>), %25:_(<2 x bf16>), %26:_(<2 x bf16>), %27:_(<2 x bf16>) = G_INTRINSIC intrinsic(@llvm.vector.deinterleave6), %0:_(<12 x bf16>) (in function: vector_deinterleave6_v12bf16_v2bf16)
warning: Instruction selection used fallback path for vector_deinterleave6_v12bf16_v2bf16

Occurrences (4):

InputFunctionConfig
vector-deinterleave-fixed.130f87010e.ll (mutant of vector-deinterleave-fixed.ll)vector_deinterleave6_v12bf16_v2bf16-mtriple=riscv64 -mattr=+m,+zvfh,+zvfbfmin,+experimental-zvzip -O2 -verify-machineinstrs
vector-deinterleave-fixed.afac9a3878.ll (mutant of vector-deinterleave-fixed.ll)vector_deinterleave6_v12bf16_v2bf16-mtriple=riscv64 -mattr=+v,+m,+zvfh,+zfa -O1 -verify-machineinstrs
vector-deinterleave-fixed.bdbf94a787.ll (mutant of vector-deinterleave-fixed.ll)vector_deinterleave6_v12bf16_v2bf16-mtriple=riscv64 -mattr=+m,+zvfh -O1 -verify-machineinstrs
vector-interleave-fixed.b735cf5580.ll (mutant of vector-interleave-fixed.ll)vector_interleave5_v10bf16_v2bf16-mtriple=riscv32 -mattr=+zvbb,+zvfh,+zvfbfmin -O3 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.