fallback: legalize: G_CLMUL <N x i8>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_CLMUL <N x i8> M |
| Occurrences: | 3 in 3 configs, 1 test files, 8 more counted only |
| Snippet from: | fixed-vectors-clmul.617ef8e848.ll (mutant of fixed-vectors-clmul.ll) @clmul_v4i8 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+zve32x -O2 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define <4 x i8> @clmul_v4i8(<4 x i8> %a, <4 x i8> %b) #0 {
%A = alloca i1, align 1
store i1 poison, ptr %A, align 1
%res = call <4 x i8> @llvm.clmul.v4i8(<4 x i8> %a, <4 x i8> %b)
%C = icmp sgt i8 -1, 0
store i1 %C, ptr %A, align 1
ret <4 x i8> %res
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x i8> @llvm.clmul.v4i8(<4 x i8>, <4 x i8>) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zve32x -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zve32x -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %7:_(<4 x i8>) = G_CLMUL %0:_, %1:_ (in function: clmul_v4i8)
warning: Instruction selection used fallback path for clmul_v4i8
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-clmul.20afc26198.ll (mutant of fixed-vectors-clmul.ll) | clmul_v4i8 | -mtriple=riscv64 -verify-machineinstrs -O3 -code-model=small |
| fixed-vectors-clmul.617ef8e848.ll (mutant of fixed-vectors-clmul.ll) | clmul_v4i8 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zve32x -O2 |
| fixed-vectors-clmul.6fa8dd4820.ll (mutant of fixed-vectors-clmul.ll) | clmul_v4i8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+experimental-zvbc32e,+zcb -O1 |
Generated 2026-11-29 14:49 UTC.