fallback: translate: call llvm.smax.nxv1i32

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.smax.nxv1i32 M
Occurrences:5 in 4 configs, 1 test files, 2 more counted only
Snippet from:vmax-vp.9f25beb0a6.ll (mutant of vmax-vp.ll) @vmax_vv_nxv1i32 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O1 -code-model=medium
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <vscale x 1 x i32> @vmax_vv_nxv1i32(<vscale x 1 x i32> %va, <vscale x 1 x i32> %b, <vscale x 1 x i1> %m, i32 zeroext %evl) {
  %v = call <vscale x 1 x i32> @llvm.smax.nxv1i32(<vscale x 1 x i32> %va, <vscale x 1 x i32> %b)
  %B = and <vscale x 1 x i32> %v, %v
  ret <vscale x 1 x i32> %B
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (5):

InputFunctionConfig
vmax-vp.1e79958134.ll (mutant of vmax-vp.ll)vmax_vx_nxv1i32-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zbs,+zfh -O0 -code-model=small
vmax-vp.4e342ba6ee.ll (mutant of vmax-vp.ll)vmax_vv_nxv1i32-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfhmin -O0
vmax-vp.4e342ba6ee.ll (mutant of vmax-vp.ll)vmax_vx_nxv1i32-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfhmin -O0
vmax-vp.77e67314b4.ll (mutant of vmax-vp.ll)vmax_vv_nxv1i32-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zba -O0
vmax-vp.9f25beb0a6.ll (mutant of vmax-vp.ll)vmax_vv_nxv1i32-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O1 -code-model=medium

Generated 2026-11-29 14:49 UTC.