fallback: translate: call llvm.vp.sdiv.nxv4i64
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: call llvm.vp.sdiv.nxv4i64 M |
| Occurrences: | 4 in 3 configs, 1 test files, 7 more counted only |
| Snippet from: | vdiv-vp.40c9d38137.ll (mutant of vdiv-vp.ll) @vdiv_vv_nxv4i64 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh -O0 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.1 = external global <4 x i32>
@G.2 = external global <4 x i32>
define <vscale x 4 x i64> @vdiv_vv_nxv4i64(<vscale x 4 x i64> %va, <vscale x 4 x i64> %b, <vscale x 4 x i1> %m, i32 zeroext %evl) {
%LGV = load <4 x i32>, ptr @G.1, align 16
%v = call <vscale x 4 x i64> @llvm.vp.sdiv.nxv4i64(<vscale x 4 x i64> %va, <vscale x 4 x i64> %b, <vscale x 4 x i1> %m, i32 %evl)
%B = urem <4 x i32> splat (i32 2147483647), %LGV
store <4 x i32> %B, ptr @G.2, align 16
ret <vscale x 4 x i64> %v
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare <vscale x 4 x i64> @llvm.vp.sdiv.nxv4i64(<vscale x 4 x i64>, <vscale x 4 x i64>, <vscale x 4 x i1>, i32) #0
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.vp.sdiv.nxv4i64: ' %v = call <vscale x 4 x i64> @llvm.vp.sdiv.nxv4i64(<vscale x 4 x i64> %va, <vscale x 4 x i64> %b, <vscale x 4 x i1> %m, i32 %evl)' (in function: vdiv_vv_nxv4i64)
warning: Instruction selection used fallback path for vdiv_vv_nxv4i64
Occurrences (4):
| Input | Function | Config |
|---|
| vdiv-vp.40c9d38137.ll (mutant of vdiv-vp.ll) | vdiv_vv_nxv4i64 | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh -O0 |
| vdiv-vp.7d2a3f09e8.ll (mutant of vdiv-vp.ll) | vdiv_vv_nxv4i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2 |
| vdiv-vp.b2b6330901.ll (mutant of vdiv-vp.ll) | vdiv_vx_nxv4i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2 -code-model=medium |
| vdiv-vp.e30445ea01.ll (mutant of vdiv-vp.ll) | vdiv_vx_nxv4i64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2 |
Generated 2026-11-29 14:49 UTC.