fallback: legalize: G_INTRINSIC <N x i64>,<N x i64>
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_INTRINSIC <N x i64>,<N x i64> M |
| Occurrences: | 3 in 3 configs, 1 test files, 49 more counted only |
| Snippet from: | fixed-vectors-zvdot4a8i-i64.3cbd6d61a3.ll (mutant of fixed-vectors-zvdot4a8i-i64.ll) @vdot4a_v2i64 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+experimental-zvdot4a8i,+zcb -O3 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.5 = external global i1
define <2 x i64> @vdot4a_v2i64(<2 x i64> %acc, <16 x i8> %a, <16 x i8> %b) {
entry:
%C = fcmp one bfloat 4.200000e+01, 1.000000e+00
%a.sext = sext <16 x i8> %a to <16 x i64>
%b.sext = sext <16 x i8> %b to <16 x i64>
%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 @G.5, 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 -mattr=+experimental-zvdot4a8i,+zcb -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+experimental-zvdot4a8i,+zcb -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %13:_(<2 x i64>) = G_INTRINSIC intrinsic(@llvm.vector.partial.reduce.add), %0:_(<2 x i64>), %12:_(<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.3cbd6d61a3.ll (mutant of fixed-vectors-zvdot4a8i-i64.ll) | vdot4a_v2i64 | -mtriple=riscv64 -verify-machineinstrs -mattr=+experimental-zvdot4a8i,+zcb -O3 |
| fixed-vectors-zvdot4a8i-i64.6b8ec0049a.ll (mutant of fixed-vectors-zvdot4a8i-i64.ll) | vdot4a_v2i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+experimental-zvdot4a8i,+zfhmin -O3 |
| fixed-vectors-zvdot4a8i-i64.7d859210b9.ll (mutant of fixed-vectors-zvdot4a8i-i64.ll) | vdot4au_v4i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+experimental-zvdot4a8i -O0 |
Generated 2026-11-29 14:49 UTC.