fallback: translate: call llvm.clmul.i8

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.clmul.i8 M
Occurrences:7 in 6 configs, 2 test files, 10 more counted only
Snippet from:clmul.b698ad1199.ll (mutant of clmul.ll) @clmul_i8 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx,+zbs -O0
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i8 @clmul_i8(i8 %a, i8 %b) #0 {
  %res = call i8 @llvm.clmul.i8(i8 %a, i8 %b)
  %B = urem i8 %res, %a
  ret i8 %B
}

; 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=riscv64 -verify-machineinstrs -mattr=+zhinx,+zbs -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx,+zbs -O0 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.clmul.i8: '  %res = call i8 @llvm.clmul.i8(i8 %a, i8 %b)' (in function: clmul_i8)
warning: Instruction selection used fallback path for clmul_i8

Occurrences (7):

InputFunctionConfig
clmul.0452259f20.ll (mutant of clmul.ll)commutative_clmul_i8-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbs,+xtheadba,+zfinx -O2
clmul.b698ad1199.ll (mutant of clmul.ll)clmul_i8-mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx,+zbs -O0
clmul.d513814b60.ll (mutant of clmul.ll)clmul_i8-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbs,+zfinx -O2
clmul.d513814b60.ll (mutant of clmul.ll)mul_use_commutative_clmul_i8-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbs,+zfinx -O2
clmul.f3ac78ceaf.ll (mutant of clmul.ll)neg_commutative_clmul_i8-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbc,+zhinx,+zbb -O0
clmul.fb99f742ad.ll (mutant of clmul.ll)neg_commutative_clmul_i8-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zvbc,+zhinx -O3
clmulr.ce9e50a0f7.ll (mutant of clmulr.ll)mul_use_commutative_clmul_i8-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2

Generated 2026-11-29 14:49 UTC.