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

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.uadd.with.overflow.i32 M
Occurrences:3 in 3 configs, 2 test files, 5 more counted only
Snippet from:xaluo.233df3708d.ll (mutant of xaluo.ll) @uaddo.not.i32 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zba,+zfinx -O0
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i1 @uaddo.not.i32(i32 signext %v1, i32 signext %v2) {
entry:
  %t = call { i32, i1 } @llvm.uadd.with.overflow.i32(i32 %v1, i32 %v2)
  %obit = extractvalue { i32, i1 } %t, 1
  %B = or i32 %v2, %v2
  %ret = xor i1 %obit, true
  store i32 %B, ptr poison, align 4
  ret i1 %ret
}

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

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

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zba,+zfinx -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zba,+zfinx -O0 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (3):

InputFunctionConfig
addcarry.54de1ccc99.ll (mutant of addcarry.ll)addcarry_2x32-mtriple=riscv32 -mattr=+m,+zfinx,+zicond -O1 -code-model=medium -verify-machineinstrs
xaluo.233df3708d.ll (mutant of xaluo.ll)uaddo.not.i32-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zba,+zfinx -O0
xaluo.c8caa1681b.ll (mutant of xaluo.ll)uaddo.br.i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O1

Generated 2026-11-29 14:49 UTC.