fallback: translate: call llvm.clmul.i64

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.clmul.i64 M
Occurrences:3 in 3 configs, 1 test files, 9 more counted only
Snippet from:combine-clmul.d14deb5fb2.ll (mutant of combine-clmul.ll) @combine_i64_cmul_zero_rhs via llvm-extract
Config:-mtriple=riscv64 -mattr=+zbc,+zdinx -O1 -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i64 @combine_i64_cmul_zero_rhs(i64 %x) #0 {
  %res = call i64 @llvm.clmul.i64(i64 0, i64 %x)
  %B = shl i64 %res, %x
  ret i64 %B
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.clmul.i64(i64, i64) #1

attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

llc -mtriple=riscv64 -mattr=+zbc,+zdinx -O1 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+zbc,+zdinx -O1 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (3):

InputFunctionConfig
combine-clmul.70e915a0ec.ll (mutant of combine-clmul.ll)combine_i64_cmul_zero-mtriple=riscv64 -mattr=+zbc,+zbb,+zhinx -O3 -code-model=medium -verify-machineinstrs
combine-clmul.906499165d.ll (mutant of combine-clmul.ll)combine_i64_cmul_zero-mtriple=riscv64 -mattr=+zbc,+zvkb,+zfinx -O2 -verify-machineinstrs
combine-clmul.d14deb5fb2.ll (mutant of combine-clmul.ll)combine_i64_cmul_zero_rhs-mtriple=riscv64 -mattr=+zbc,+zdinx -O1 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.