fallback: translate: call llvm.clmul.i8
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: call llvm.clmul.i8 M |
| Occurrences: | 4 in 4 configs, 2 test files, 9 more counted only |
| Snippet from: | clmul.c73cbdba85.ll (mutant of clmul.ll) @commutative_clmul_i8 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zve32x -O1 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define void @commutative_clmul_i8(i8 %x, i8 %y, ptr %p0, ptr %p1) #0 {
%yx = call i8 @llvm.clmul.i8(i8 %y, i8 %x)
%xy = call i8 @llvm.clmul.i8(i8 %x, i8 %y)
store i8 %xy, ptr %p0, align 1
store i8 %yx, ptr %p1, align 1
ret void
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.clmul.i8(i8, i8) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zve32x -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zve32x -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.clmul.i8: ' %yx = call i8 @llvm.clmul.i8(i8 %y, i8 %x)' (in function: commutative_clmul_i8)
warning: Instruction selection used fallback path for commutative_clmul_i8
Occurrences (4):
| Input | Function | Config |
|---|
| clmul.2701a627b9.ll (mutant of clmul.ll) | mul_use_commutative_clmul_i8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zvkb,+zhinx -O1 -code-model=medium |
| clmul.c73cbdba85.ll (mutant of clmul.ll) | commutative_clmul_i8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zve32x -O1 |
| clmulr.0bda1990ef.ll (mutant of clmulr.ll) | mul_use_commutative_clmul_i8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zdinx -O1 |
| clmulr.5f1d302733.ll (mutant of clmulr.ll) | mul_use_commutative_clmul_i8 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zfinx,+zicond -O1 -code-model=medium |
Generated 2026-11-29 14:49 UTC.