fallback: translate: call llvm.umax.nxv2i32

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.umax.nxv2i32 M
Occurrences:4 in 3 configs, 1 test files, 4 more counted only
Snippet from:vmaxu-vp.f39d7f4a0b.ll (mutant of vmaxu-vp.ll) @vmaxu_vv_nxv2i32 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 i16
@G.1 = external global i1

define <vscale x 2 x i32> @vmaxu_vv_nxv2i32(<vscale x 2 x i32> %va, <vscale x 2 x i32> %b, <vscale x 2 x i1> %m, i32 zeroext %evl) {
  %LGV = load i16, ptr @G, align 2
  %C = icmp ne i16 %LGV, -32768
  %v = call <vscale x 2 x i32> @llvm.umax.nxv2i32(<vscale x 2 x i32> %va, <vscale x 2 x i32> %b)
  store i1 %C, ptr @G.1, align 1
  ret <vscale x 2 x i32> %v
}

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

Occurrences (4):

InputFunctionConfig
vmaxu-vp.1909cdf179.ll (mutant of vmaxu-vp.ll)vmaxu_vx_nxv2i32_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O1 -code-model=small
vmaxu-vp.bdf3391b15.ll (mutant of vmaxu-vp.ll)vmaxu_vx_nxv2i32-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zbb -O1
vmaxu-vp.ceb55c8d15.ll (mutant of vmaxu-vp.ll)vmaxu_vv_nxv2i32-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O1 -code-model=small
vmaxu-vp.f39d7f4a0b.ll (mutant of vmaxu-vp.ll)vmaxu_vv_nxv2i32-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O0

Generated 2026-11-29 14:49 UTC.