fallback: translate: call llvm.ucmp.i32.i32

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.ucmp.i32.i32 M
Occurrences:5 in 3 configs, 2 test files, 2 more counted only
Snippet from:ucmp.865ee746ba.ll (mutant of ucmp.ll) @ucmp.32.32 via llvm-extract
Config:-mtriple=riscv32 -mattr=+zdinx -O0 -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i1

; Function Attrs: nounwind
define i32 @ucmp.32.32(i32 %x, i32 %y) #0 {
  %1 = call i32 @llvm.ucmp.i32.i32(i32 %x, i32 %y)
  %C = icmp sle i32 %1, %x
  store i1 %C, ptr @G, align 1
  ret i32 %1
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare range(i32 -1, 2) i32 @llvm.ucmp.i32.i32(i32, i32) #1

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.ucmp.i32.i32: '  %1 = call i32 @llvm.ucmp.i32.i32(i32 %x, i32 %y)' (in function: ucmp.32.32)
warning: Instruction selection used fallback path for ucmp.32.32

Occurrences (5):

InputFunctionConfig
ucmp.2144d07cdf.ll (mutant of ucmp.ll)ucmp.32.32-mtriple=riscv32 -mattr=+zhinx -O0 -verify-machineinstrs
ucmp.2144d07cdf.ll (mutant of ucmp.ll)ucmp.32.32_zext-mtriple=riscv32 -mattr=+zhinx -O0 -verify-machineinstrs
ucmp.4bd84d1bcb.ll (mutant of ucmp.ll)ucmp.32.32-mtriple=riscv64 -mattr=+c,+zhinx -O3 -verify-machineinstrs
ucmp.865ee746ba.ll (mutant of ucmp.ll)ucmp.32.32-mtriple=riscv32 -mattr=+zdinx -O0 -verify-machineinstrs
ucmp.865ee746ba.ll (mutant of ucmp.ll)ucmp.32.32_zext-mtriple=riscv32 -mattr=+zdinx -O0 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.