fallback: translate: call llvm.umax.i32

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.umax.i32 M
Occurrences:3 in 3 configs, 2 test files, 15 more counted only
Snippet from:min-max.f45b7df411.ll (mutant of min-max.ll) @umax_undef_i32 via llvm-extract
Config:-mtriple=riscv32 -mattr=+zbb,+zhinx -O2 -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define signext i32 @umax_undef_i32() {
  %c = call i32 @llvm.umax.i32(i32 undef, i32 undef)
  %B = ashr i1 true, false
  store i1 %B, ptr poison, align 1
  ret i32 %c
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #0

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

Reproduce:

llc -mtriple=riscv32 -mattr=+zbb,+zhinx -O2 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+zbb,+zhinx -O2 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.umax.i32: '  %c = call i32 @llvm.umax.i32(i32 undef, i32 undef)' (in function: umax_undef_i32)
warning: Instruction selection used fallback path for umax_undef_i32

Occurrences (3):

InputFunctionConfig
min-max.f45b7df411.ll (mutant of min-max.ll)umax_undef_i32-mtriple=riscv32 -mattr=+zbb,+zhinx -O2 -verify-machineinstrs
select-zbb.3037586448.ll (mutant of select-zbb.ll)select_umax_1-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbb,+zfinx -O0
select-zbb.4c80d7ff44.ll (mutant of select-zbb.ll)select_umax_2-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbb,+zdinx,+zhinx -O1

Generated 2026-11-29 14:49 UTC.