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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.uadd.with.overflow.i64 M
Occurrences:4 in 4 configs, 3 test files, 10 more counted only
Snippet from:overflow-intrinsics.591e2c3098.ll (mutant of overflow-intrinsics.ll) @uaddo_i64_increment_alt_dom via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx,+c -O3
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i1

define i1 @uaddo_i64_increment_alt_dom(i64 %x, ptr %p) {
  %ov = icmp eq i64 %x, -1
  %B = sdiv i1 %ov, false
  %a = add i64 %x, 1
  store i64 %a, ptr %p, align 4
  store i1 %B, ptr @G, align 1
  ret i1 %ov
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.uadd.with.overflow.i64: '  %1 = call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %x, i64 1)' (in function: uaddo_i64_increment_alt_dom)
warning: Instruction selection used fallback path for uaddo_i64_increment_alt_dom

Occurrences (4):

InputFunctionConfig
overflow-intrinsics.591e2c3098.ll (mutant of overflow-intrinsics.ll)uaddo_i64_increment_alt_dom-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx,+c -O3
rv32-move-merge.3cd57b86cd.ll (mutant of rv32-move-merge.ll)mv_to_fmv-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zicond,+c -O2
xaluo.1572de036c.ll (mutant of xaluo.ll)uaddo.i64.constant_2048-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O0
xaluo.2960db0f81.ll (mutant of xaluo.ll)uaddo.i64.constant_one-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O0

Generated 2026-11-29 14:49 UTC.