fallback: translate: call llvm.uadd.with.overflow.i64
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: call llvm.uadd.with.overflow.i64 M |
| Occurrences: | 7 in 5 configs, 2 test files, 2 more counted only |
| Snippet from: | overflow-intrinsics.d26c559de3.ll (mutant of overflow-intrinsics.ll) @uaddo2_overflow_used via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.3 = external global i64
; Function Attrs: nounwind ssp
define i64 @uaddo2_overflow_used(i64 %a, i64 %b) #0 {
%add = add i64 %b, %a
%B = urem i64 %add, -9223372036854775808
%cmp = icmp ult i64 %add, %b
%Q = select i1 %cmp, i64 %b, i64 42
store i64 %B, ptr @G.3, align 4
ret i64 %Q
}
attributes #0 = { nounwind ssp }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2 -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 %b, i64 %a)' (in function: uaddo2_overflow_used)
warning: Instruction selection used fallback path for uaddo2_overflow_used
Occurrences (7):
| Input | Function | Config |
|---|
| overflow-intrinsics.d26c559de3.ll (mutant of overflow-intrinsics.ll) | uaddo2_overflow_used | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2 |
| overflow-intrinsics.d26c559de3.ll (mutant of overflow-intrinsics.ll) | uaddo2_math_overflow_used | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2 |
| overflow-intrinsics.d26c559de3.ll (mutant of overflow-intrinsics.ll) | uaddo3_math_overflow_used | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2 |
| xaluo.1c63033a44.ll (mutant of xaluo.ll) | uaddo.br.i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O0 |
| xaluo.2d573064cc.ll (mutant of xaluo.ll) | uaddo.i64 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zhinx,+zve32x -O3 |
| xaluo.4aae56b92c.ll (mutant of xaluo.ll) | uaddo.br.i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zicond,+zvkb,+zdinx -O3 |
| xaluo.8a37c51524.ll (mutant of xaluo.ll) | uaddo.i64.constant | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zba,+zdinx -O2 |
Generated 2026-11-29 14:49 UTC.