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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: udiv <vscale x N x i1> M
Occurrences:10 in 10 configs, 10 test files, 120 more counted only
Snippet from:stepvector.85a4a221de.ll (mutant of stepvector.ll) @shl_stepvector_nxv16i16 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+zvkb -O0
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <vscale x 16 x i16> @shl_stepvector_nxv16i16() {
entry:
  %A = alloca <vscale x 4 x i1>, align 1
  store <vscale x 4 x i1> poison, ptr %A, align 1
  %B = udiv <vscale x 4 x i1> splat (i1 true), zeroinitializer
  %0 = call <vscale x 16 x i16> @llvm.stepvector.nxv16i16()
  %1 = shl <vscale x 16 x i16> %0, splat (i16 2)
  store <vscale x 4 x i1> %B, ptr %A, align 1
  ret <vscale x 16 x i16> %1
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare <vscale x 16 x i16> @llvm.stepvector.nxv16i16() #0

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

Reproduce:

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

Local llc output:

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

Occurrences (10):

InputFunctionConfig
fixed-vectors-ctlz.f47d281b03.ll (mutant of fixed-vectors-ctlz.ll)ctlz_zero_poison_v16i16-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zve64x,+zvl128b,+zve64d -O1
roundtozero-vp.813a3c0216.ll (mutant of roundtozero-vp.ll)vp_roundtozero_nxv4bf16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zfbfmin,+zvfbfmin,+v -O3
stepvector.85a4a221de.ll (mutant of stepvector.ll)shl_stepvector_nxv16i16-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+v,+zvkb -O0
strided-vpstore.86fa990af5.ll (mutant of strided-vpstore.ll)strided_vpstore_nxv1i8_i8-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+d,+v -O0
vitofp-constrained-sdnode.88dbb3cf2a.ll (mutant of vitofp-constrained-sdnode.ll)vsitofp_nxv8i1_nxv8f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+experimental-zvfbfa,+v -O2 -code-model=small
vlsseg-rv64.2b8a1df4ba.ll (mutant of vlsseg-rv64.ll)test_vlsseg4_mask_nxv1i64_triscv.vector.tuple_nxv8i8_4t-mtriple=riscv64 -verify-machineinstrs -mattr=+zve64d,+f,+zvfh,+zvfbfmin -O2
vp-reverse-int.a711738fbb.ll (mutant of vp-reverse-int.ll)test_vp_reverse_nxv16i32_masked-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+v -O2
vploadff.12385f77ed.ll (mutant of vploadff.ll)vploadff_nxv1bf16-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfhmin,+zvfbfmin,+v -O3
vreductions-mask-vp.c8c89ac3df.ll (mutant of vreductions-mask-vp.ll)vpreduce_and_nxv2i1-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh -O0
vsse.c3ded51ebf.ll (mutant of vsse.ll)intrinsic_vsse_mask_v_nxv1i64_nxv1i64-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+v,+zvfhmin -O0

Generated 2026-11-29 14:49 UTC.