fallback: translate: call llvm.smax.nxv16i32

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.smax.nxv16i32 M
Occurrences:5 in 5 configs, 1 test files
Snippet from:vmax-vp.4cf27dc556.ll (mutant of vmax-vp.ll) @vmax_vv_nxv16i32_unmasked via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O3
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i32

define <vscale x 16 x i32> @vmax_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.smax.nxv16i32(<vscale x 16 x i32> %va, <vscale x 16 x i32> %b)
  %B = shl i32 %evl, %evl
  store i32 %B, ptr @G.1, 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.smax.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 -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O3 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (5):

InputFunctionConfig
vmax-vp.3d205b1a6d.ll (mutant of vmax-vp.ll)vmax_vx_nxv16i32_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+c,+d -O0
vmax-vp.4cf27dc556.ll (mutant of vmax-vp.ll)vmax_vv_nxv16i32_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O3
vmax-vp.b237a53d67.ll (mutant of vmax-vp.ll)vmax_vv_nxv16i32_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O0
vmax-vp.b5b0e316ff.ll (mutant of vmax-vp.ll)vmax_vv_nxv16i32_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O2
vmax-vp.cd20dcb152.ll (mutant of vmax-vp.ll)vmax_vx_nxv16i32-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O3 -code-model=small

Generated 2026-11-29 14:49 UTC.