fallback: translate: call llvm.smax.nxv16i32
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: call llvm.smax.nxv16i32 M |
| Occurrences: | 5 in 5 configs, 1 test files, 2 more counted only |
| Snippet from: | vmax-vp.1e79958134.ll (mutant of vmax-vp.ll) @vmax_vv_nxv16i32 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zbs,+zfh -O0 -code-model=small |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i32
define <vscale x 16 x i32> @vmax_vv_nxv16i32(<vscale x 16 x i32> %va, <vscale x 16 x i32> %b, <vscale x 16 x i1> %m, i32 zeroext %evl) {
%A = alloca i1, align 1
store i1 poison, ptr %A, align 1
%LGV = load i32, ptr @G, align 4
%v = call <vscale x 16 x i32> @llvm.smax.nxv16i32(<vscale x 16 x i32> %va, <vscale x 16 x i32> %b)
%C = icmp ne i32 %evl, %LGV
store i1 %C, ptr %A, align 1
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=riscv64 -verify-machineinstrs -mattr=+v,+zbs,+zfh -O0 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zbs,+zfh -O0 -code-model=small -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)
warning: Instruction selection used fallback path for vmax_vv_nxv16i32
Occurrences (5):
| Input | Function | Config |
|---|
| vmax-vp.0a70ab54d1.ll (mutant of vmax-vp.ll) | vmax_vx_nxv16i32 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O3 |
| vmax-vp.1e79958134.ll (mutant of vmax-vp.ll) | vmax_vv_nxv16i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zbs,+zfh -O0 -code-model=small |
| vmax-vp.21307e14cc.ll (mutant of vmax-vp.ll) | vmax_vv_nxv16i32_unmasked | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zvkb -O1 |
| vmax-vp.aeef181ce5.ll (mutant of vmax-vp.ll) | vmax_vv_nxv16i32 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2 |
| vmax-vp.d36b1063a2.ll (mutant of vmax-vp.ll) | vmax_vx_nxv16i32_unmasked | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zihintpause -O3 |
Generated 2026-11-29 14:49 UTC.