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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.ssub.with.overflow.i32 M
Occurrences:4 in 4 configs, 2 test files, 6 more counted only
Snippet from:xaluo.2960db0f81.ll (mutant of xaluo.ll) @ssubo.not.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 i1 @ssubo.not.i32(i32 signext %v1, i32 signext %v2) {
entry:
  %t = call { i32, i1 } @llvm.ssub.with.overflow.i32(i32 %v1, i32 %v2)
  %obit = extractvalue { i32, i1 } %t, 1
  %ret = xor i1 %obit, true
  %C = icmp ne i32 %v1, %v2
  store i1 %C, ptr poison, align 1
  ret i1 %ret
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare { i32, i1 } @llvm.ssub.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.ssub.with.overflow.i32: '  %t = call { i32, i1 } @llvm.ssub.with.overflow.i32(i32 %v1, i32 %v2)' (in function: ssubo.not.i32)
warning: Instruction selection used fallback path for ssubo.not.i32

Occurrences (4):

InputFunctionConfig
arith-with-overflow.fbd8bc9961.ll (mutant of arith-with-overflow.ll)ssub-mtriple=riscv32 -verify-machineinstrs -mattr=+zicsr,+zhinx -O2
xaluo.24c2599d9a.ll (mutant of xaluo.ll)ssubo1.i32-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zba,+zdinx -O1
xaluo.2960db0f81.ll (mutant of xaluo.ll)ssubo.not.i32-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O0
xaluo.7d753b7c63.ll (mutant of xaluo.ll)ssubo.select.i32-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zdinx -O1 -code-model=medium

Generated 2026-11-29 14:49 UTC.