fallback: translate: call llvm.smax.nxv8i32

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

Snippet:

define <vscale x 8 x i32> @vmax_vx_nxv8i32(<vscale x 8 x i32> %va, i32 %b, <vscale x 8 x i1> %m, i32 zeroext %evl) {
  %elt.head = insertelement <vscale x 8 x i32> poison, i32 %b, i32 0
  %vb = shufflevector <vscale x 8 x i32> %elt.head, <vscale x 8 x i32> poison, <vscale x 8 x i32> zeroinitializer
  %v = call <vscale x 8 x i32> @llvm.smax.nxv8i32(<vscale x 8 x i32> %va, <vscale x 8 x i32> %vb)
  %C = icmp sle <vscale x 8 x i32> %v, %va
  store <vscale x 8 x i1> %C, ptr poison, align 1
  ret <vscale x 8 x i32> %v
}

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

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.smax.nxv8i32: '  %v = call <vscale x 8 x i32> @llvm.smax.nxv8i32(<vscale x 8 x i32> %va, <vscale x 8 x i32> %vb)' (in function: vmax_vx_nxv8i32)
warning: Instruction selection used fallback path for vmax_vx_nxv8i32

Occurrences (3):

InputFunctionConfig
vmax-vp.4e72ae2d29.ll (mutant of vmax-vp.ll)vmax_vx_nxv8i32-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O2
vmax-vp.bcb0fcfffa.ll (mutant of vmax-vp.ll)vmax_vv_nxv8i32-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvfh,+zbb -O1
vmax-vp.ee9f720ba2.ll (mutant of vmax-vp.ll)vmax_vx_nxv8i32-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+d -O0

Generated 2026-11-29 14:49 UTC.