fallback: translate: call llvm.smax.nxv32i32
| Run: | main-b577f07195-20261129-101839 |
| Kind: | fallback |
| Category: | translate: call llvm.smax.nxv32i32 M |
| Occurrences: | 2 in 2 configs, 1 test files |
| Snippet from: | vmax-vp.2b91314004.ll (mutant of vmax-vp.ll) @vmax_vx_nxv32i32_evl_nx8 via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+v -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define <vscale x 32 x i32> @vmax_vx_nxv32i32_evl_nx8(<vscale x 32 x i32> %va, i32 %b, <vscale x 32 x i1> %m) {
%B = sdiv i32 %b, -2147483648
%elt.head = insertelement <vscale x 32 x i32> poison, i32 %B, i32 0
%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)
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 -mattr=+v -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+v -verify-machineinstrs -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_evl_nx8)
warning: Instruction selection used fallback path for vmax_vx_nxv32i32_evl_nx8
Occurrences (2):
| Input | Function | Config |
|---|
| vmax-vp.2b91314004.ll (mutant of vmax-vp.ll) | vmax_vx_nxv32i32_evl_nx8 | -mtriple=riscv32 -mattr=+v -verify-machineinstrs |
| vmax-vp.4d3037f3d0.ll (mutant of vmax-vp.ll) | vmax_vx_nxv32i32_evl_nx8 | -mtriple=riscv64 -mattr=+v -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.