fallback: translate: call llvm.smin.nxv4i8

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.smin.nxv4i8 M
Occurrences:6 in 5 configs, 1 test files, 7 more counted only
Snippet from:vmin-vp.2acb7351fd.ll (mutant of vmin-vp.ll) @vmin_vv_nxv4i8 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O0
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global <2 x i64>

define <vscale x 4 x i8> @vmin_vv_nxv4i8(<vscale x 4 x i8> %va, <vscale x 4 x i8> %b, <vscale x 4 x i1> %m, i32 zeroext %evl) {
  %A = alloca <2 x i64>, align 16
  store <2 x i64> poison, ptr %A, align 16
  %LGV = load <2 x i64>, ptr @G.2, align 16
  %v = call <vscale x 4 x i8> @llvm.smin.nxv4i8(<vscale x 4 x i8> %va, <vscale x 4 x i8> %b)
  %B = or <2 x i64> splat (i64 -1), %LGV
  store <2 x i64> %B, ptr %A, align 16
  ret <vscale x 4 x i8> %v
}

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

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

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -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.nxv4i8: '  %v = call <vscale x 4 x i8> @llvm.smin.nxv4i8(<vscale x 4 x i8> %va, <vscale x 4 x i8> %b)' (in function: vmin_vv_nxv4i8)
warning: Instruction selection used fallback path for vmin_vv_nxv4i8

Occurrences (6):

InputFunctionConfig
vmin-vp.0b48a91b90.ll (mutant of vmin-vp.ll)vmin_vx_nxv4i8_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+c -O3
vmin-vp.1cf2bbf7bf.ll (mutant of vmin-vp.ll)vmin_vx_nxv4i8-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1
vmin-vp.2acb7351fd.ll (mutant of vmin-vp.ll)vmin_vv_nxv4i8-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O0
vmin-vp.44705792c8.ll (mutant of vmin-vp.ll)vmin_vx_nxv4i8-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2 -code-model=medium
vmin-vp.848b476fe1.ll (mutant of vmin-vp.ll)vmin_vv_nxv4i8-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O3 -code-model=small
vmin-vp.9a781e21a6.ll (mutant of vmin-vp.ll)vmin_vv_nxv4i8_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O0

Generated 2026-11-29 14:49 UTC.