fallback: translate: call llvm.smin.nxv2i32

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.smin.nxv2i32 M
Occurrences:4 in 3 configs, 1 test files, 3 more counted only
Snippet from:vmin-vp.0d0d7ae1b4.ll (mutant of vmin-vp.ll) @vmin_vv_nxv2i32_unmasked via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O0
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <vscale x 2 x i32> @vmin_vv_nxv2i32_unmasked(<vscale x 2 x i32> %va, <vscale x 2 x i32> %b, i32 zeroext %evl) {
  %C = icmp uge i32 %evl, 0
  %v = call <vscale x 2 x i32> @llvm.smin.nxv2i32(<vscale x 2 x i32> %va, <vscale x 2 x i32> %b)
  store i1 %C, ptr poison, align 1
  ret <vscale x 2 x i32> %v
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <vscale x 2 x i32> @llvm.smin.nxv2i32(<vscale x 2 x i32>, <vscale x 2 x i32>) #0

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.smin.nxv2i32: '  %v = call <vscale x 2 x i32> @llvm.smin.nxv2i32(<vscale x 2 x i32> %va, <vscale x 2 x i32> %b)' (in function: vmin_vv_nxv2i32_unmasked)
warning: Instruction selection used fallback path for vmin_vv_nxv2i32_unmasked

Occurrences (4):

InputFunctionConfig
vmin-vp.0d0d7ae1b4.ll (mutant of vmin-vp.ll)vmin_vv_nxv2i32_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O0
vmin-vp.5622250c22.ll (mutant of vmin-vp.ll)vmin_vx_nxv2i32-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfa,+c -O1
vmin-vp.e7ef6a7270.ll (mutant of vmin-vp.ll)vmin_vv_nxv2i32_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O3
vmin-vp.e7ef6a7270.ll (mutant of vmin-vp.ll)vmin_vx_nxv2i32_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O3

Generated 2026-11-29 14:49 UTC.