fallback: translate: call llvm.smin.nxv32i16

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.smin.nxv32i16 M
Occurrences:8 in 6 configs, 1 test files, 2 more counted only
Snippet from:vmin-vp.3ba61c688d.ll (mutant of vmin-vp.ll) @vmin_vv_nxv32i16 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zicsr -O0 -code-model=small
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i1

define <vscale x 32 x i16> @vmin_vv_nxv32i16(<vscale x 32 x i16> %va, <vscale x 32 x i16> %b, <vscale x 32 x i1> %m, i32 zeroext %evl) {
  %LGV = load i1, ptr @G, align 1
  %v = call <vscale x 32 x i16> @llvm.smin.nxv32i16(<vscale x 32 x i16> %va, <vscale x 32 x i16> %b)
  %B = sub i1 %LGV, false
  store i1 %B, ptr @G, align 1
  ret <vscale x 32 x i16> %v
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (8):

InputFunctionConfig
vmin-vp.0404d5a233.ll (mutant of vmin-vp.ll)vmin_vv_nxv32i16-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+c -O1 -code-model=small
vmin-vp.0b48a91b90.ll (mutant of vmin-vp.ll)vmin_vx_nxv32i16-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+c -O3
vmin-vp.1798f7fb20.ll (mutant of vmin-vp.ll)vmin_vx_nxv32i16-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1
vmin-vp.3ba61c688d.ll (mutant of vmin-vp.ll)vmin_vv_nxv32i16-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zicsr -O0 -code-model=small
vmin-vp.3ba61c688d.ll (mutant of vmin-vp.ll)vmin_vx_nxv32i16-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zicsr -O0 -code-model=small
vmin-vp.c2e2960df5.ll (mutant of vmin-vp.ll)vmin_vv_nxv32i16-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O2
vmin-vp.cd95bb8cdd.ll (mutant of vmin-vp.ll)vmin_vx_nxv32i16-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O2 -code-model=medium
vmin-vp.f84d8f4704.ll (mutant of vmin-vp.ll)vmin_vv_nxv32i16-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1

Generated 2026-11-29 14:49 UTC.