fallback: translate: call llvm.smax.nxv32i8

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.smax.nxv32i8 M
Occurrences:4 in 3 configs, 1 test files, 1 more counted only
Snippet from:vmax-vp.056d1cdf6b.ll (mutant of vmax-vp.ll) @vmax_vv_nxv32i8 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvfh -O0
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global float

define <vscale x 32 x i8> @vmax_vv_nxv32i8(<vscale x 32 x i8> %va, <vscale x 32 x i8> %b, <vscale x 32 x i1> %m, i32 zeroext %evl) {
  %A = alloca float, align 4
  store float poison, ptr %A, align 4
  %LGV = load float, ptr @G, align 4
  %v = call <vscale x 32 x i8> @llvm.smax.nxv32i8(<vscale x 32 x i8> %va, <vscale x 32 x i8> %b)
  %B = fdiv float f0x7F7FFFFF, %LGV
  store float %B, ptr %A, align 4
  ret <vscale x 32 x i8> %v
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (4):

InputFunctionConfig
vmax-vp.056d1cdf6b.ll (mutant of vmax-vp.ll)vmax_vv_nxv32i8-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvfh -O0
vmax-vp.1f06e5acf1.ll (mutant of vmax-vp.ll)vmax_vx_nxv32i8_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2
vmax-vp.7b548d836b.ll (mutant of vmax-vp.ll)vmax_vx_nxv32i8_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2
vmax-vp.a19795807b.ll (mutant of vmax-vp.ll)vmax_vx_nxv32i8-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+m,+zihintpause -O2

Generated 2026-11-29 14:49 UTC.