fallback: translate: call llvm.umax.i64

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.umax.i64 M
Occurrences:4 in 4 configs, 2 test files, 7 more counted only
Snippet from:min-max.b1d6297405.ll (mutant of min-max.ll) @umax_i64_one via llvm-extract
Config:-mtriple=riscv64 -mattr=+zdinx -O2 -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i1

define i64 @umax_i64_one(i64 %a, i64 %b) {
  %c = call i64 @llvm.umax.i64(i64 %a, i64 1)
  %C = icmp slt i64 %c, %c
  store i1 %C, ptr @G, align 1
  ret i64 %c
}

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

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

Reproduce:

llc -mtriple=riscv64 -mattr=+zdinx -O2 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+zdinx -O2 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (4):

InputFunctionConfig
min-max.b1d6297405.ll (mutant of min-max.ll)umax_i64_one-mtriple=riscv64 -mattr=+zdinx -O2 -verify-machineinstrs
short-forward-branch-opt-min-max.3732fea431.ll (mutant of short-forward-branch-opt-min-max.ll)select_example_umax_1-mtriple=riscv64 -mattr=+zhinx -O0 -verify-machineinstrs
short-forward-branch-opt-min-max.a9006f6701.ll (mutant of short-forward-branch-opt-min-max.ll)select_example_umax_1-mtriple=riscv64 -mattr=+zbb,+short-forward-branch-iminmax,+zcb,+zhinx -O1 -verify-machineinstrs
short-forward-branch-opt-min-max.bec98e07e0.ll (mutant of short-forward-branch-opt-min-max.ll)select_example_umax_1-mtriple=riscv64 -mattr=+zbb,+zfinx -O0 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.