fallback: translate: call llvm.smul.with.overflow.i32
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: call llvm.smul.with.overflow.i32 M |
| Occurrences: | 4 in 4 configs, 1 test files, 6 more counted only |
| Snippet from: | xaluo.2960db0f81.ll (mutant of xaluo.ll) @smulo2.i32 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O0 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define zeroext i1 @smulo2.i32(i32 signext %v1, ptr %res) {
entry:
%t = call { i32, i1 } @llvm.smul.with.overflow.i32(i32 %v1, i32 13)
%obit = extractvalue { i32, i1 } %t, 1
%B = srem i32 %v1, %v1
store i32 %B, ptr %res, align 4
ret i1 %obit
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare { i32, i1 } @llvm.smul.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,+zhinx -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.smul.with.overflow.i32: ' %t = call { i32, i1 } @llvm.smul.with.overflow.i32(i32 %v1, i32 13)' (in function: smulo2.i32)
warning: Instruction selection used fallback path for smulo2.i32
Occurrences (4):
| Input | Function | Config |
|---|
| xaluo.2960db0f81.ll (mutant of xaluo.ll) | smulo2.i32 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O0 |
| xaluo.41469136d3.ll (mutant of xaluo.ll) | smulo.br.i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zicond,+zfinx -O2 |
| xaluo.8c37428828.ll (mutant of xaluo.ll) | smulo.not.i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zba,+zhinx -O2 |
| xaluo.ad8fa0b6a7.ll (mutant of xaluo.ll) | smulo2.i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zba,+zdinx -O3 |
Generated 2026-11-29 14:49 UTC.