fallback: translate: call llvm.smax.nxv8i64

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

Snippet:

@G = external global i1

define <vscale x 8 x i64> @vmax_vv_nxv8i64(<vscale x 8 x i64> %va, <vscale x 8 x i64> %b, <vscale x 8 x i1> %m, i32 zeroext %evl) {
  %v = call <vscale x 8 x i64> @llvm.smax.nxv8i64(<vscale x 8 x i64> %va, <vscale x 8 x i64> %b)
  %E = extractelement <vscale x 8 x i1> %m, i32 %evl
  store i1 %E, ptr @G, align 1
  ret <vscale x 8 x i64> %v
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (9):

InputFunctionConfig
vmax-vp.1e79958134.ll (mutant of vmax-vp.ll)vmax_vx_nxv8i64_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zbs,+zfh -O0 -code-model=small
vmax-vp.223c027d22.ll (mutant of vmax-vp.ll)vmax_vv_nxv8i64_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2
vmax-vp.3a31a9b967.ll (mutant of vmax-vp.ll)vmax_vv_nxv8i64-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O0
vmax-vp.3fcce74f2a.ll (mutant of vmax-vp.ll)vmax_vv_nxv8i64-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+xtheadba -O2
vmax-vp.3fcce74f2a.ll (mutant of vmax-vp.ll)vmax_vv_nxv8i64_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+xtheadba -O2
vmax-vp.4f682ed6c4.ll (mutant of vmax-vp.ll)vmax_vv_nxv8i64-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zicsr -O1
vmax-vp.7b8a90b3b2.ll (mutant of vmax-vp.ll)vmax_vv_nxv8i64-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O0
vmax-vp.afa14ff014.ll (mutant of vmax-vp.ll)vmax_vx_nxv8i64_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zicsr -O3
vmax-vp.c6b7c5cd1f.ll (mutant of vmax-vp.ll)vmax_vv_nxv8i64-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+xtheadba -O1

Generated 2026-11-29 14:49 UTC.