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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.sadd.with.overflow.i64 M
Occurrences:4 in 3 configs, 1 test files, 5 more counted only
Snippet from:xaluo.edd69120bd.ll (mutant of xaluo.ll) @saddo2.i64 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zba,+zhinx -O3
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

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

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.sadd.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,+zba,+zhinx -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zba,+zhinx -O3 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (4):

InputFunctionConfig
xaluo.24c2599d9a.ll (mutant of xaluo.ll)saddo3.i64-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zba,+zdinx -O1
xaluo.713608171d.ll (mutant of xaluo.ll)saddo2.i64-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zba,+zhinx,+zicond -O3
xaluo.edd69120bd.ll (mutant of xaluo.ll)saddo2.i64-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zba,+zhinx -O3
xaluo.edd69120bd.ll (mutant of xaluo.ll)saddo3.i64-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zba,+zhinx -O3

Generated 2026-11-29 14:49 UTC.