fallback: translate: sdiv <vscale x N x i1>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: sdiv <vscale x N x i1> M
Occurrences:7 in 7 configs, 7 test files, 125 more counted only
Snippet from:fixed-vectors-vnsra-vnsrl.6a4e93a431.ll (mutant of fixed-vectors-vnsra-vnsrl.ll) @vnsrl_v2i64_v2i32_scalar via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <2 x i32> @vnsrl_v2i64_v2i32_scalar(<2 x i64> %x, i64 %y) {
  %insert = insertelement <2 x i64> poison, i64 %y, i32 0
  %splat = shufflevector <2 x i64> %insert, <2 x i64> poison, <2 x i32> zeroinitializer
  %a = lshr <2 x i64> %x, %splat
  %b = trunc <2 x i64> %a to <2 x i32>
  %B = sdiv <vscale x 4 x i1> zeroinitializer, splat (i1 true)
  store <vscale x 4 x i1> %B, ptr poison, align 1
  ret <2 x i32> %b
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: sdiv: '  %B = sdiv <vscale x 4 x i1> zeroinitializer, splat (i1 true)' (in function: vnsrl_v2i64_v2i32_scalar)
warning: Instruction selection used fallback path for vnsrl_v2i64_v2i32_scalar

Occurrences (7):

InputFunctionConfig
fixed-vectors-vnsra-vnsrl.6a4e93a431.ll (mutant of fixed-vectors-vnsra-vnsrl.ll)vnsrl_v2i64_v2i32_scalar-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1
vcpop.54f38cd5c9.ll (mutant of vcpop.ll)intrinsic_vcpop_mask_m_nxv1i1-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zvbb -O0
vpload.1c8b87d761.ll (mutant of vpload.ll)vpload_nxv1i64-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin,+v,+a,+xtheadba -O1
vpmerge-sdnode.3f546b44e4.ll (mutant of vpmerge-sdnode.ll)vpmerge_nxv8i1-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+v,+zve64d -O3
vreductions-int-vp.c7394a80b6.ll (mutant of vreductions-int-vp.ll)vpreduce_add_nxv1i16-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+m -O2
vreductions-mask-vp.ce0d4c32af.ll (mutant of vreductions-mask-vp.ll)vpreduce_smin_nxv1i1-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zba -O1 -code-model=small
vzip.8d2521c2ca.ll (mutant of vzip.ll)test_vzip_vv_mask_i16m8-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+experimental-zvzip -O3

Generated 2026-11-29 14:49 UTC.