fallback: translate: call llvm.smul.with.overflow.i64

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

Snippet:

@G = external global i64

define zeroext i1 @smulo.i64(i64 %v1, i64 %v2, ptr %res) {
entry:
  %t = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %v1, i64 %v2)
  %val = extractvalue { i64, i1 } %t, 0
  %obit = extractvalue { i64, i1 } %t, 1
  %B = and i64 %v1, %v2
  store i64 %val, ptr %res, align 4
  store i64 %B, ptr @G, align 4
  ret i1 %obit
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.smul.with.overflow.i64(i64, i64) #0

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.smul.with.overflow.i64: '  %t = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %v1, i64 %v2)' (in function: smulo.i64)
warning: Instruction selection used fallback path for smulo.i64

Occurrences (5):

InputFunctionConfig
xaluo.23d3ff417b.ll (mutant of xaluo.ll)smulo2.br.i64-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zba,+zhinx -O2
xaluo.7ab26c9a79.ll (mutant of xaluo.ll)smulo.br.i64-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zba,+zhinx,+zcb -O1
xaluo.b4a90a569b.ll (mutant of xaluo.ll)smulo.not.i64-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zfinx -O3
xaluo.fd6895c259.ll (mutant of xaluo.ll)smulo.i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O3
xaluo.fd6895c259.ll (mutant of xaluo.ll)smulo.select.i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O3

Generated 2026-11-29 14:49 UTC.