fallback: translate: call llvm.smax.nxv1i64
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: call llvm.smax.nxv1i64 M |
| Occurrences: | 6 in 6 configs, 1 test files, 6 more counted only |
| Snippet from: | vmax-vp.0ff8ba9fdc.ll (mutant of vmax-vp.ll) @vmax_vv_nxv1i64_unmasked via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O3 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global <8 x i1>
define <vscale x 1 x i64> @vmax_vv_nxv1i64_unmasked(<vscale x 1 x i64> %va, <vscale x 1 x i64> %b, i32 zeroext %evl) {
%C = icmp sge <8 x i8> splat (i8 1), splat (i8 -128)
%v = call <vscale x 1 x i64> @llvm.smax.nxv1i64(<vscale x 1 x i64> %va, <vscale x 1 x i64> %b)
store <8 x i1> %C, ptr @G, align 1
ret <vscale x 1 x i64> %v
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <vscale x 1 x i64> @llvm.smax.nxv1i64(<vscale x 1 x i64>, <vscale x 1 x i64>) #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.nxv1i64: ' %v = call <vscale x 1 x i64> @llvm.smax.nxv1i64(<vscale x 1 x i64> %va, <vscale x 1 x i64> %b)' (in function: vmax_vv_nxv1i64_unmasked)
warning: Instruction selection used fallback path for vmax_vv_nxv1i64_unmasked
Occurrences (6):
| Input | Function | Config |
|---|
| vmax-vp.0ff8ba9fdc.ll (mutant of vmax-vp.ll) | vmax_vv_nxv1i64_unmasked | -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O3 |
| vmax-vp.112d4659e9.ll (mutant of vmax-vp.ll) | vmax_vv_nxv1i64_unmasked | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zba -O0 |
| vmax-vp.6cba8dfe1f.ll (mutant of vmax-vp.ll) | vmax_vx_nxv1i64 | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+xtheadba -O0 |
| vmax-vp.7b1f172bec.ll (mutant of vmax-vp.ll) | vmax_vv_nxv1i64_unmasked | -mtriple=riscv64 -verify-machineinstrs -mattr=+v -O0 |
| vmax-vp.a3af69060b.ll (mutant of vmax-vp.ll) | vmax_vx_nxv1i64_unmasked | -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2 |
| vmax-vp.ed4db890bb.ll (mutant of vmax-vp.ll) | vmax_vv_nxv1i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1 |
Generated 2026-11-29 14:49 UTC.