fallback: translate: call llvm.smax.nxv8i8

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.smax.nxv8i8 M
Occurrences:8 in 8 configs, 1 test files
Snippet from:vmax-vp.056d1cdf6b.ll (mutant of vmax-vp.ll) @vmax_vv_nxv8i8_unmasked 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.1 = external global i64
@G.2 = external global i1

define <vscale x 8 x i8> @vmax_vv_nxv8i8_unmasked(<vscale x 8 x i8> %va, <vscale x 8 x i8> %b, i32 zeroext %evl) {
  %LGV = load i64, ptr @G.1, align 4
  %C = icmp ugt i64 42, %LGV
  %v = call <vscale x 8 x i8> @llvm.smax.nxv8i8(<vscale x 8 x i8> %va, <vscale x 8 x i8> %b)
  store i1 %C, ptr @G.2, align 1
  ret <vscale x 8 x i8> %v
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <vscale x 8 x i8> @llvm.smax.nxv8i8(<vscale x 8 x i8>, <vscale x 8 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.nxv8i8: '  %v = call <vscale x 8 x i8> @llvm.smax.nxv8i8(<vscale x 8 x i8> %va, <vscale x 8 x i8> %b)' (in function: vmax_vv_nxv8i8_unmasked)
warning: Instruction selection used fallback path for vmax_vv_nxv8i8_unmasked

Occurrences (8):

InputFunctionConfig
vmax-vp.056d1cdf6b.ll (mutant of vmax-vp.ll)vmax_vv_nxv8i8_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvfh -O0
vmax-vp.41e816da23.ll (mutant of vmax-vp.ll)vmax_vv_nxv8i8-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zve64d -O0 -code-model=medium
vmax-vp.5932a7ca7b.ll (mutant of vmax-vp.ll)vmax_vx_nxv8i8-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zbkb -O3
vmax-vp.67d1f5afe3.ll (mutant of vmax-vp.ll)vmax_vv_nxv8i8-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zbs -O1 -code-model=small
vmax-vp.6bccd2e256.ll (mutant of vmax-vp.ll)vmax_vv_nxv8i8-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O2
vmax-vp.953d50d64d.ll (mutant of vmax-vp.ll)vmax_vv_nxv8i8-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2
vmax-vp.ac3de589e2.ll (mutant of vmax-vp.ll)vmax_vx_nxv8i8-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zbs -O2
vmax-vp.adde532f74.ll (mutant of vmax-vp.ll)vmax_vx_nxv8i8_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O3

Generated 2026-11-29 14:49 UTC.