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

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

Snippet:

@G = external global i32

define i1 @uaddo_i32_decrement_alt(i32 signext %x, ptr %p) {
  %a = add i32 %x, -1
  store i32 %a, ptr %p, align 4
  %B = or i32 %a, 0
  %ov = icmp ne i32 %x, 0
  store i32 %B, ptr @G, align 4
  ret i1 %ov
}

Reproduce:

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

Local llc output:

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

Occurrences (4):

InputFunctionConfig
arith-with-overflow.5dd8c59015.ll (mutant of arith-with-overflow.ll)uadd-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+m -O3
overflow-intrinsics.36fcd73a44.ll (mutant of overflow-intrinsics.ll)uaddo_i32_decrement_alt-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O3
xaluo.b687164b83.ll (mutant of xaluo.ll)uaddo.i32-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zicond,+zdinx,+zbkb -O0 -code-model=medium
xaluo.ba2f22d411.ll (mutant of xaluo.ll)uaddo.i32-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zba,+zfinx -O3

Generated 2026-11-29 14:49 UTC.