fallback: translate: bitcast <vscale x N x i32>

Run:main-db12fc36f6-20261127-110859
Kind:fallback
Category:translate: bitcast <vscale x N x i32>
Occurrences:24 in 4 configs, 1 test files
Snippet from:zvdot4a8i-sdnode.ll @partial_reduce_vdot4a_vx_operand1 via llvm-extract
Config:-mtriple=riscv32 -mattr=+v -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <vscale x 4 x i32> @partial_reduce_vdot4a_vx_operand1(<vscale x 4 x i32> %acc, <vscale x 16 x i8> %a, i32 %x) {
  %h = insertelement <vscale x 4 x i32> poison, i32 %x, i32 0
  %s = shufflevector <vscale x 4 x i32> %h, <vscale x 4 x i32> poison, <vscale x 4 x i32> zeroinitializer
  %b = bitcast <vscale x 4 x i32> %s to <vscale x 16 x i8>
  %a.sext = sext <vscale x 16 x i8> %a to <vscale x 16 x i32>
  %b.sext = sext <vscale x 16 x i8> %b to <vscale x 16 x i32>
  %mul = mul <vscale x 16 x i32> %a.sext, %b.sext
  %res = call <vscale x 4 x i32> @llvm.vector.partial.reduce.add.nxv4i32.nxv16i32(<vscale x 4 x i32> %acc, <vscale x 16 x i32> %mul)
  ret <vscale x 4 x i32> %res
}

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

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: bitcast: '  %b = bitcast <vscale x 4 x i32> %s to <vscale x 16 x i8>' (in function: partial_reduce_vdot4a_vx_operand1)
warning: Instruction selection used fallback path for partial_reduce_vdot4a_vx_operand1

Occurrences (24) (first 15):

InputFunctionConfig
zvdot4a8i-sdnode.llpartial_reduce_vdot4a_vx_operand1-mtriple=riscv32 -mattr=+v -verify-machineinstrs
zvdot4a8i-sdnode.llpartial_reduce_vdot4a_vx_operand0-mtriple=riscv32 -mattr=+v -verify-machineinstrs
zvdot4a8i-sdnode.llpartial_reduce_vdot4au_vx_operand1-mtriple=riscv32 -mattr=+v -verify-machineinstrs
zvdot4a8i-sdnode.llpartial_reduce_vdot4au_vx_operand0-mtriple=riscv32 -mattr=+v -verify-machineinstrs
zvdot4a8i-sdnode.llpartial_reduce_vdot4asu_vx-mtriple=riscv32 -mattr=+v -verify-machineinstrs
zvdot4a8i-sdnode.llpartial_reduce_vdot4aus_vx-mtriple=riscv32 -mattr=+v -verify-machineinstrs
zvdot4a8i-sdnode.llpartial_reduce_vdot4a_vx_operand1-mtriple=riscv32 -mattr=+v,+experimental-zvdot4a8i -verify-machineinstrs
zvdot4a8i-sdnode.llpartial_reduce_vdot4a_vx_operand0-mtriple=riscv32 -mattr=+v,+experimental-zvdot4a8i -verify-machineinstrs
zvdot4a8i-sdnode.llpartial_reduce_vdot4au_vx_operand1-mtriple=riscv32 -mattr=+v,+experimental-zvdot4a8i -verify-machineinstrs
zvdot4a8i-sdnode.llpartial_reduce_vdot4au_vx_operand0-mtriple=riscv32 -mattr=+v,+experimental-zvdot4a8i -verify-machineinstrs
zvdot4a8i-sdnode.llpartial_reduce_vdot4asu_vx-mtriple=riscv32 -mattr=+v,+experimental-zvdot4a8i -verify-machineinstrs
zvdot4a8i-sdnode.llpartial_reduce_vdot4aus_vx-mtriple=riscv32 -mattr=+v,+experimental-zvdot4a8i -verify-machineinstrs
zvdot4a8i-sdnode.llpartial_reduce_vdot4a_vx_operand1-mtriple=riscv64 -mattr=+v -verify-machineinstrs
zvdot4a8i-sdnode.llpartial_reduce_vdot4a_vx_operand0-mtriple=riscv64 -mattr=+v -verify-machineinstrs
zvdot4a8i-sdnode.llpartial_reduce_vdot4au_vx_operand1-mtriple=riscv64 -mattr=+v -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.