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

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_INTRINSIC <N x i64>,<N x i64> M
Occurrences:4 in 2 configs, 1 test files, 25 more counted only
Snippet from:fixed-vectors-zvdot4a8i-i64.6ca506f50b.ll (mutant of fixed-vectors-zvdot4a8i-i64.ll) @vdot4au_v4i64 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zfh -O0
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global float

define <4 x i64> @vdot4au_v4i64(<4 x i64> %acc, <32 x i8> %a, <32 x i8> %b) {
entry:
  %LGV = load float, ptr @G.1, align 4
  %b.zext = zext <32 x i8> %b to <32 x i64>
  %C = fcmp uno float %LGV, +inf
  %a.zext = zext <32 x i8> %a to <32 x i64>
  %mul = mul <32 x i64> %a.zext, %b.zext
  store i1 %C, ptr poison, align 1
  %B = urem <32 x i64> %b.zext, %mul
  %res = call <4 x i64> @llvm.vector.partial.reduce.add.v4i64.v32i64(<4 x i64> %acc, <32 x i64> %B)
  ret <4 x i64> %res
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x i64> @llvm.vector.partial.reduce.add.v4i64.v32i64(<4 x i64>, <32 x i64>) #0

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %16:_(<4 x i64>) = G_INTRINSIC intrinsic(@llvm.vector.partial.reduce.add), %0:_(<4 x i64>), %15:_(<32 x i64>) (in function: vdot4au_v4i64)
warning: Instruction selection used fallback path for vdot4au_v4i64

Occurrences (4):

InputFunctionConfig
fixed-vectors-zvdot4a8i-i64.3acb6e7d1f.ll (mutant of fixed-vectors-zvdot4a8i-i64.ll)vdot4a_v2i64-mtriple=riscv32 -verify-machineinstrs -O0
fixed-vectors-zvdot4a8i-i64.3acb6e7d1f.ll (mutant of fixed-vectors-zvdot4a8i-i64.ll)vdot4au_v4i64-mtriple=riscv32 -verify-machineinstrs -O0
fixed-vectors-zvdot4a8i-i64.6ca506f50b.ll (mutant of fixed-vectors-zvdot4a8i-i64.ll)vdot4au_v4i64-mtriple=riscv32 -verify-machineinstrs -mattr=+zfh -O0
fixed-vectors-zvdot4a8i-i64.6ca506f50b.ll (mutant of fixed-vectors-zvdot4a8i-i64.ll)vdot4asu_v2i64-mtriple=riscv32 -verify-machineinstrs -mattr=+zfh -O0

Generated 2026-11-29 14:49 UTC.