fallback: translate: call llvm.clmul.i32

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.clmul.i32 M
Occurrences:6 in 6 configs, 4 test files, 5 more counted only
Snippet from:rv64zbc-zbkc-intrinsic.6dff2637f0.ll (mutant of rv64zbc-zbkc-intrinsic.ll) @clmul32 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O0
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define signext i32 @clmul32(i32 signext %a, i32 signext %b) #0 {
  %tmp = call i32 @llvm.clmul.i32(i32 %a, i32 %b)
  %C = icmp eq i32 %b, %b
  store i1 %C, ptr poison, align 1
  ret i32 %tmp
}

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

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

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O0 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (6):

InputFunctionConfig
clmul.5fd4850265.ll (mutant of clmul.ll)clmul_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbs,+zfinx,+zicond -O3
clmul.c8a98c4892.ll (mutant of clmul.ll)clmul_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zvbc,+zfinx -O1
combine-clmul.70e915a0ec.ll (mutant of combine-clmul.ll)combine_i32_cmul_zero-mtriple=riscv64 -mattr=+zbc,+zbb,+zhinx -O3 -code-model=medium -verify-machineinstrs
rv32zbc-zbkc-intrinsic.b724cbd588.ll (mutant of rv32zbc-zbkc-intrinsic.ll)clmul32-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O2
rv32zbc-zbkc-intrinsic.fae7103b47.ll (mutant of rv32zbc-zbkc-intrinsic.ll)llvm_clmul_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2
rv64zbc-zbkc-intrinsic.6dff2637f0.ll (mutant of rv64zbc-zbkc-intrinsic.ll)clmul32-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O0

Generated 2026-11-29 14:49 UTC.