fallback: translate: call llvm.riscv.clmulh.i32

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.riscv.clmulh.i32 M
Occurrences:4 in 4 configs, 3 test files, 6 more counted only
Snippet from:rv32zbc-zbkc-intrinsic.b724cbd588.ll (mutant of rv32zbc-zbkc-intrinsic.ll) @clmul32h via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O2
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i32 @clmul32h(i32 %a, i32 %b) #0 {
  %tmp = call i32 @llvm.riscv.clmulh.i32(i32 %a, i32 %b)
  %B = sdiv i32 %a, %tmp
  ret i32 %B
}

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

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

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O2 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (4):

InputFunctionConfig
clmul-rv32.6d78c27fb1.ll (mutant of clmul-rv32.ll)clmulh_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zbc,+zdinx -O3
clmul-rv64.23c8d05a1a.ll (mutant of clmul-rv64.ll)clmulh_i32_zext-mtriple=riscv64 -verify-machineinstrs -mattr=+zbc,+zhinx,+zihintpause -O2
rv32zbc-zbkc-intrinsic.4149f047b8.ll (mutant of rv32zbc-zbkc-intrinsic.ll)clmul32h-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2
rv32zbc-zbkc-intrinsic.b724cbd588.ll (mutant of rv32zbc-zbkc-intrinsic.ll)clmul32h-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O2

Generated 2026-11-29 14:49 UTC.