fallback: translate: call llvm.umax.nxv16i32

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.umax.nxv16i32 M
Occurrences:5 in 5 configs, 1 test files, 3 more counted only
Snippet from:vmaxu-vp.63b19d0c38.ll (mutant of vmaxu-vp.ll) @vmaxu_vv_nxv16i32_unmasked via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zve32x,+zfhmin -O2 -code-model=small
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i32

define <vscale x 16 x i32> @vmaxu_vv_nxv16i32_unmasked(<vscale x 16 x i32> %va, <vscale x 16 x i32> %b, i32 zeroext %evl) {
  %v = call <vscale x 16 x i32> @llvm.umax.nxv16i32(<vscale x 16 x i32> %va, <vscale x 16 x i32> %b)
  %B = and i32 %evl, 1
  store i32 %B, ptr @G, align 4
  ret <vscale x 16 x i32> %v
}

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

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

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zve32x,+zfhmin -O2 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zve32x,+zfhmin -O2 -code-model=small -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (5):

InputFunctionConfig
vmaxu-vp.2f72b9987c.ll (mutant of vmaxu-vp.ll)vmaxu_vx_nxv16i32-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O2
vmaxu-vp.35eaa8b69b.ll (mutant of vmaxu-vp.ll)vmaxu_vv_nxv16i32-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O3
vmaxu-vp.4dda077781.ll (mutant of vmaxu-vp.ll)vmaxu_vx_nxv16i32_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O1
vmaxu-vp.5049e022bd.ll (mutant of vmaxu-vp.ll)vmaxu_vx_nxv16i32_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfhmin -O3
vmaxu-vp.63b19d0c38.ll (mutant of vmaxu-vp.ll)vmaxu_vv_nxv16i32_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zve32x,+zfhmin -O2 -code-model=small

Generated 2026-11-29 14:49 UTC.