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

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.smul.with.overflow.i64 M
Occurrences:4 in 4 configs, 1 test files, 2 more counted only
Snippet from:xaluo.66dea78f27.ll (mutant of xaluo.ll) @smulo.not.i64 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O2
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i1

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

; 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=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O2 -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.not.i64)
warning: Instruction selection used fallback path for smulo.not.i64

Occurrences (4):

InputFunctionConfig
xaluo.66dea78f27.ll (mutant of xaluo.ll)smulo.not.i64-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O2
xaluo.68c6f7f4f2.ll (mutant of xaluo.ll)smulo.i64-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zicond,+zfinx -O0
xaluo.ac05eca0da.ll (mutant of xaluo.ll)smulo.select.i64-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zba,+zfinx -O1
xaluo.d74e2f8a72.ll (mutant of xaluo.ll)smulo.br.i64-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zfinx,+zcb -O0

Generated 2026-11-29 14:49 UTC.