fallback: translate: call llvm.smax.nxv32i32
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: call llvm.smax.nxv32i32 M |
| Occurrences: | 3 in 3 configs, 1 test files, 6 more counted only |
| Snippet from: | vmax-vp.697bec1d21.ll (mutant of vmax-vp.ll) @vmax_vx_nxv32i32_unmasked via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zihintpause -O2 -code-model=medium |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.6 = external global float
define <vscale x 32 x i32> @vmax_vx_nxv32i32_unmasked(<vscale x 32 x i32> %va, i32 %b, i32 zeroext %evl) {
%LGV = load float, ptr @G.6, align 4
%elt.head = insertelement <vscale x 32 x i32> poison, i32 %b, i32 0
%B = fsub float 1.401300e-45, %LGV
%vb = shufflevector <vscale x 32 x i32> %elt.head, <vscale x 32 x i32> poison, <vscale x 32 x i32> zeroinitializer
%v = call <vscale x 32 x i32> @llvm.smax.nxv32i32(<vscale x 32 x i32> %va, <vscale x 32 x i32> %vb)
store float %B, ptr @G.6, align 4
ret <vscale x 32 x i32> %v
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <vscale x 32 x i32> @llvm.smax.nxv32i32(<vscale x 32 x i32>, <vscale x 32 x i32>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zihintpause -O2 -code-model=medium -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zihintpause -O2 -code-model=medium -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.smax.nxv32i32: ' %v = call <vscale x 32 x i32> @llvm.smax.nxv32i32(<vscale x 32 x i32> %va, <vscale x 32 x i32> %vb)' (in function: vmax_vx_nxv32i32_unmasked)
warning: Instruction selection used fallback path for vmax_vx_nxv32i32_unmasked
Occurrences (3):
| Input | Function | Config |
|---|
| vmax-vp.2166691e38.ll (mutant of vmax-vp.ll) | vmax_vx_nxv32i32_evl_nx8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvkb -O3 |
| vmax-vp.697bec1d21.ll (mutant of vmax-vp.ll) | vmax_vx_nxv32i32_unmasked | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zihintpause -O2 -code-model=medium |
| vmax-vp.a3af69060b.ll (mutant of vmax-vp.ll) | vmax_vx_nxv32i32_evl_nx16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2 |
Generated 2026-11-29 14:49 UTC.