fallback: translate: call llvm.vp.sdiv.nxv8i64

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.vp.sdiv.nxv8i64 M
Occurrences:7 in 7 configs, 1 test files, 3 more counted only
Snippet from:vdiv-vp.6cdfa51423.ll (mutant of vdiv-vp.ll) @vdiv_vv_nxv8i64_unmasked via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfhmin,+zicsr -O1
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global i32

define <vscale x 8 x i64> @vdiv_vv_nxv8i64_unmasked(<vscale x 8 x i64> %va, <vscale x 8 x i64> %b, i32 zeroext %evl) {
  %LGV = load i32, ptr @G.2, align 4
  %v = call <vscale x 8 x i64> @llvm.vp.sdiv.nxv8i64(<vscale x 8 x i64> %va, <vscale x 8 x i64> %b, <vscale x 8 x i1> splat (i1 true), i32 %evl)
  %C = icmp ule i32 %evl, %LGV
  store i1 %C, ptr poison, align 1
  ret <vscale x 8 x i64> %v
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare <vscale x 8 x i64> @llvm.vp.sdiv.nxv8i64(<vscale x 8 x i64>, <vscale x 8 x i64>, <vscale x 8 x i1>, i32) #0

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(none) }

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfhmin,+zicsr -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfhmin,+zicsr -O1 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.vp.sdiv.nxv8i64: '  %v = call <vscale x 8 x i64> @llvm.vp.sdiv.nxv8i64(<vscale x 8 x i64> %va, <vscale x 8 x i64> %b, <vscale x 8 x i1> splat (i1 true), i32 %evl)' (in function: vdiv_vv_nxv8i64_unmasked)
warning: Instruction selection used fallback path for vdiv_vv_nxv8i64_unmasked

Occurrences (7):

InputFunctionConfig
vdiv-vp.20e07b10e6.ll (mutant of vdiv-vp.ll)vdiv_vx_nxv8i64_unmasked-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvfh -O2 -code-model=medium
vdiv-vp.386df993f7.ll (mutant of vdiv-vp.ll)vdiv_vx_nxv8i64-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O0 -code-model=small
vdiv-vp.6cdfa51423.ll (mutant of vdiv-vp.ll)vdiv_vv_nxv8i64_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfhmin,+zicsr -O1
vdiv-vp.6d2a3820ca.ll (mutant of vdiv-vp.ll)vdiv_vx_nxv8i64-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O0 -code-model=small
vdiv-vp.80f0707e82.ll (mutant of vdiv-vp.ll)vdiv_vx_nxv8i64_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O1 -code-model=small
vdiv-vp.8b2c7d0299.ll (mutant of vdiv-vp.ll)vdiv_vx_nxv8i64_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+f -O2
vdiv-vp.dcba04147c.ll (mutant of vdiv-vp.ll)vdiv_vx_nxv8i64_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+f -O3 -code-model=small

Generated 2026-11-29 14:49 UTC.