fallback: translate: call llvm.smin.nxv1i16
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: call llvm.smin.nxv1i16 M |
| Occurrences: | 3 in 3 configs, 1 test files, 2 more counted only |
| Snippet from: | vmin-vp.e52d9bc505.ll (mutant of vmin-vp.ll) @vmin_vx_nxv1i16_unmasked via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvfh,+zicsr -O1 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define <vscale x 1 x i16> @vmin_vx_nxv1i16_unmasked(<vscale x 1 x i16> %va, i16 %b, i32 zeroext %evl) {
%B = add <vscale x 1 x i16> %va, splat (i16 -1)
%elt.head = insertelement <vscale x 1 x i16> poison, i16 %b, i32 0
%vb = shufflevector <vscale x 1 x i16> %elt.head, <vscale x 1 x i16> poison, <vscale x 1 x i32> zeroinitializer
%v = call <vscale x 1 x i16> @llvm.smin.nxv1i16(<vscale x 1 x i16> %B, <vscale x 1 x i16> %vb)
ret <vscale x 1 x i16> %v
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <vscale x 1 x i16> @llvm.smin.nxv1i16(<vscale x 1 x i16>, <vscale x 1 x i16>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvfh,+zicsr -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvfh,+zicsr -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.smin.nxv1i16: ' %v = call <vscale x 1 x i16> @llvm.smin.nxv1i16(<vscale x 1 x i16> %B, <vscale x 1 x i16> %vb)' (in function: vmin_vx_nxv1i16_unmasked)
warning: Instruction selection used fallback path for vmin_vx_nxv1i16_unmasked
Occurrences (3):
| Input | Function | Config |
|---|
| vmin-vp.3f4f2f5f62.ll (mutant of vmin-vp.ll) | vmin_vx_nxv1i16_unmasked | -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1 |
| vmin-vp.723bb504e6.ll (mutant of vmin-vp.ll) | vmin_vx_nxv1i16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+a,+zbkb -O3 |
| vmin-vp.e52d9bc505.ll (mutant of vmin-vp.ll) | vmin_vx_nxv1i16_unmasked | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvfh,+zicsr -O1 |
Generated 2026-11-29 14:49 UTC.