fallback: translate: call llvm.clmul.v2i64

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.clmul.v2i64 M
Occurrences:4 in 4 configs, 1 test files, 5 more counted only
Snippet from:clmul.33086e5ee4.ll (mutant of clmul.ll) @commutative_clmul_v2i64 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbs,+zdinx -O3
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define void @commutative_clmul_v2i64(<2 x i64> %x, <2 x i64> %y, ptr %p0, ptr %p1) #0 {
  %yx = call <2 x i64> @llvm.clmul.v2i64(<2 x i64> %y, <2 x i64> %x)
  store <2 x i64> %yx, ptr %p1, align 16
  %xy = call <2 x i64> @llvm.clmul.v2i64(<2 x i64> %x, <2 x i64> %y)
  store <2 x i64> %xy, ptr %p0, align 16
  ret void
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (4):

InputFunctionConfig
clmul.0c2dfe5e7c.ll (mutant of clmul.ll)commutative_clmul_v2i64-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zvbc,+zhinx -O1
clmul.132240a75b.ll (mutant of clmul.ll)mul_use_commutative_clmul_v2i64-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zfinx,+c -O1
clmul.1d74c2c241.ll (mutant of clmul.ll)commutative_clmul_v2i64-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbs,+zdinx -O1
clmul.33086e5ee4.ll (mutant of clmul.ll)commutative_clmul_v2i64-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbs,+zdinx -O3

Generated 2026-11-29 14:49 UTC.