fallback: translate: call llvm.uadd.with.overflow.i32
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: call llvm.uadd.with.overflow.i32 M |
| Occurrences: | 5 in 5 configs, 4 test files, 6 more counted only |
| Snippet from: | attributes.5e12947780.ll (mutant of attributes.ll) @addi via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+zaamo,+zhinx -O3 -verify-machineinstrs |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global double
@G.1 = external global i1
@G.2 = external global i32
@G.3 = external global i1
define i32 @addi(i32 %a) {
%C = icmp eq i32 %a, -1
%LGV = load double, ptr @G, align 8
%C1 = fcmp olt double 4.200000e+01, %LGV
store i1 %C, ptr poison, align 1
%LGV2 = load i32, ptr @G.2, align 4
%C4 = icmp ult i32 %LGV2, 2147483647
%1 = add i32 %a, 1
store i1 %C1, ptr @G.1, align 1
%C3 = icmp ule i32 %a, %LGV2
store i1 %C3, ptr @G.1, align 1
store i1 %C4, ptr @G.3, align 1
ret i32 %1
}
Reproduce:
llc -mtriple=riscv64 -mattr=+zaamo,+zhinx -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+zaamo,+zhinx -O3 -verify-machineinstrs -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 %a, i32 1)' (in function: addi)
warning: Instruction selection used fallback path for addi
Occurrences (5):
| Input | Function | Config |
|---|
| addcarry.495b8bf2dd.ll (mutant of addcarry.ll) | addcarry_2x32 | -mtriple=riscv32 -mattr=+m,+zfinx,+zvkb -O2 -verify-machineinstrs |
| arith-with-overflow.a170bbee1e.ll (mutant of arith-with-overflow.ll) | uadd | -mtriple=riscv32 -verify-machineinstrs -mattr=+zvkb,+zdinx -O0 |
| arith-with-overflow.a34fc8cc2b.ll (mutant of arith-with-overflow.ll) | uadd | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O3 |
| attributes.5e12947780.ll (mutant of attributes.ll) | addi | -mtriple=riscv64 -mattr=+zaamo,+zhinx -O3 -verify-machineinstrs |
| xaluo.ac05eca0da.ll (mutant of xaluo.ll) | uaddo.i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zba,+zfinx -O1 |
Generated 2026-11-29 14:49 UTC.