fallback: translate: call llvm.clmul.i8

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.clmul.i8 M
Occurrences:9 in 9 configs, 2 test files, 20 more counted only
Snippet from:clmul.4aad13a118.ll (mutant of clmul.ll) @clmul_i8 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbc,+zfinx,+a -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i8

; Function Attrs: nounwind
define i8 @clmul_i8(i8 %a, i8 %b) #0 {
  %res = call i8 @llvm.clmul.i8(i8 %a, i8 %b)
  %B = and i8 %res, 127
  store i8 %B, ptr @G, align 1
  ret i8 %res
}

; 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=+m,+zbc,+zfinx,+a -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbc,+zfinx,+a -O1 -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 (9):

InputFunctionConfig
clmul.0cff9055b1.ll (mutant of clmul.ll)neg_commutative_clmul_i8-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zdinx -O1
clmul.2ed08a2688.ll (mutant of clmul.ll)commutative_clmul_i8-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zvbc,+zhinx -O2
clmul.3498b63ab8.ll (mutant of clmul.ll)commutative_clmul_i8-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbc,+zhinx,+zba -O1
clmul.36b924b4ca.ll (mutant of clmul.ll)neg_commutative_clmul_i8-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zvbc,+zvkb,+zfinx -O1
clmul.4aad13a118.ll (mutant of clmul.ll)clmul_i8-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbc,+zfinx,+a -O1
clmul.5def08b1f1.ll (mutant of clmul.ll)mul_use_commutative_clmul_i8-mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O0
clmul.7396eebb2d.ll (mutant of clmul.ll)mul_use_commutative_clmul_i8-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbc,+zfinx,+zhinx -O2 -code-model=small
clmul.b15f3aca78.ll (mutant of clmul.ll)mul_use_commutative_clmul_i8-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+a,+zhinx -O1 -code-model=small
combine-clmul.70e915a0ec.ll (mutant of combine-clmul.ll)combine_i8_cmul_zero-mtriple=riscv64 -mattr=+zbc,+zbb,+zhinx -O3 -code-model=medium -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.