fallback: translate: call llvm.scmp.i8.i32

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.scmp.i8.i32 M
Occurrences:4 in 4 configs, 1 test files, 10 more counted only
Snippet from:scmp.ac1e6606df.ll (mutant of scmp.ll) @scmp.8.32 via llvm-extract
Config:-mtriple=riscv64 -mattr=+m,+zhinx -O0 -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i8 @scmp.8.32(i32 %x, i32 %y) #0 {
  %1 = call i8 @llvm.scmp.i8.i32(i32 %x, i32 %y)
  %B = udiv i8 %1, -1
  store i8 %B, ptr poison, align 1
  ret i8 %1
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (4):

InputFunctionConfig
scmp.1d11348a35.ll (mutant of scmp.ll)scmp.8.32-mtriple=riscv32 -mattr=+zhinx,+zihintpause -O0 -verify-machineinstrs
scmp.5b38528226.ll (mutant of scmp.ll)scmp.8.32-mtriple=riscv32 -mattr=+zfinx,+a -O0 -verify-machineinstrs
scmp.ac1e6606df.ll (mutant of scmp.ll)scmp.8.32-mtriple=riscv64 -mattr=+m,+zhinx -O0 -verify-machineinstrs
scmp.b2ccc5b941.ll (mutant of scmp.ll)scmp.8.32-mtriple=riscv64 -mattr=+zbs,+zfinx -O2 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.