fallback: legalize: G_INTRINSIC <N x i64>,<N x i64>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_INTRINSIC <N x i64>,<N x i64> M |
| Occurrences: | 3 in 2 configs, 1 test files, 57 more counted only |
| Snippet from: | fixed-vectors-zvdot4a8i-i64.5058068678.ll (mutant of fixed-vectors-zvdot4a8i-i64.ll) @vdot4a_v2i64 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -O1 -code-model=small |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i128
define <2 x i64> @vdot4a_v2i64(<2 x i64> %acc, <16 x i8> %a, <16 x i8> %b) {
entry:
%A = alloca i1, align 1
store i1 poison, ptr %A, align 1
%LGV = load i128, ptr @G, align 4
%a.sext = sext <16 x i8> %a to <16 x i64>
%b.sext = sext <16 x i8> %b to <16 x i64>
%C = icmp slt i128 170141183460469231731687303715884105727, %LGV
%mul = mul <16 x i64> %a.sext, %b.sext
%res = call <2 x i64> @llvm.vector.partial.reduce.add.v2i64.v16i64(<2 x i64> %acc, <16 x i64> %mul)
store i1 %C, ptr %A, align 1
ret <2 x i64> %res
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i64> @llvm.vector.partial.reduce.add.v2i64.v16i64(<2 x i64>, <16 x i64>) #0
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -O1 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -O1 -code-model=small -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %16:_(<2 x i64>) = G_INTRINSIC intrinsic(@llvm.vector.partial.reduce.add), %0:_(<2 x i64>), %15:_(<16 x i64>) (in function: vdot4a_v2i64)
warning: Instruction selection used fallback path for vdot4a_v2i64
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-zvdot4a8i-i64.5058068678.ll (mutant of fixed-vectors-zvdot4a8i-i64.ll) | vdot4a_v2i64 | -mtriple=riscv64 -verify-machineinstrs -O1 -code-model=small |
| fixed-vectors-zvdot4a8i-i64.f56220a9cf.ll (mutant of fixed-vectors-zvdot4a8i-i64.ll) | vdot4a_v2i64 | -mtriple=riscv64 -verify-machineinstrs -mattr=+f -O2 |
| fixed-vectors-zvdot4a8i-i64.f56220a9cf.ll (mutant of fixed-vectors-zvdot4a8i-i64.ll) | vdot4au_v4i64 | -mtriple=riscv64 -verify-machineinstrs -mattr=+f -O2 |
Generated 2026-11-29 14:49 UTC.