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

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.ucmp.i32.i32 M
Occurrences:4 in 3 configs, 1 test files, 1 more counted only
Snippet from:ucmp.0772d984a4.ll (mutant of ucmp.ll) @ucmp.32.32 via llvm-extract
Config:-mtriple=riscv32 -mattr=+zhinx -O1 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i32 @ucmp.32.32(i32 %x, i32 %y) #0 {
  %1 = call i32 @llvm.ucmp.i32.i32(i32 %x, i32 %y)
  %B = urem i32 %y, %1
  ret i32 %B
}

; 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=+zhinx -O1 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+zhinx -O1 -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 (4):

InputFunctionConfig
ucmp.0772d984a4.ll (mutant of ucmp.ll)ucmp.32.32-mtriple=riscv32 -mattr=+zhinx -O1 -verify-machineinstrs
ucmp.0772d984a4.ll (mutant of ucmp.ll)ucmp.32.32_sext-mtriple=riscv32 -mattr=+zhinx -O1 -verify-machineinstrs
ucmp.66781aa590.ll (mutant of ucmp.ll)ucmp.32.32_zext-mtriple=riscv64 -mattr=+zihintpause,+zdinx -O1 -verify-machineinstrs
ucmp.d17bb5b2b8.ll (mutant of ucmp.ll)ucmp.32.32_sext-mtriple=riscv32 -mattr=+zdinx -O0 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.