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

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: udiv <vscale x N x i1> M
Occurrences:6 in 6 configs, 5 test files, 81 more counted only
Snippet from:bswap-vp.584958e16f.ll (mutant of bswap-vp.ll) @vp_bswap_nxv32i16 via llvm-extract
Config:-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+m -O1
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <vscale x 32 x i16> @vp_bswap_nxv32i16(<vscale x 32 x i16> %va, <vscale x 32 x i1> %m, i32 zeroext %evl) {
  %B = udiv <vscale x 32 x i1> %m, zeroinitializer
  %v = call <vscale x 32 x i16> @llvm.bswap.nxv32i16(<vscale x 32 x i16> %va)
  store <vscale x 32 x i1> %B, ptr poison, align 4
  ret <vscale x 32 x i16> %v
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <vscale x 32 x i16> @llvm.bswap.nxv32i16(<vscale x 32 x i16>) #0

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

Reproduce:

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

Local llc output:

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

Occurrences (6):

InputFunctionConfig
bswap-vp.584958e16f.ll (mutant of bswap-vp.ll)vp_bswap_nxv32i16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+m -O1
floor-vp.d842b71055.ll (mutant of floor-vp.ll)vp_floor_nxv16f32_unmasked-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfhmin,+zfbfmin,+zvfbfmin,+v -O1 -code-model=medium
vloxseg-rv32.20d5d04ca9.ll (mutant of vloxseg-rv32.ll)test_vloxseg3_mask_nxv2i64_triscv.vector.tuple_nxv16i8_3t_nxv2i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zve64d,+f,+d,+zvfh,+zvfbfmin -O3
vloxseg-rv32.a245da8142.ll (mutant of vloxseg-rv32.ll)test_vloxseg2_mask_nxv2i16_triscv.vector.tuple_nxv4i8_2t_nxv2i16-mtriple=riscv32 -verify-machineinstrs -mattr=+zve64d,+f,+d,+zvfh,+zvfbfmin,+zfhmin -O1
vmaxu.c5dd479f21.ll (mutant of vmaxu.ll)intrinsic_vmaxu_vv_nxv16i32_nxv16i32_nxv16i32-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O0
vmseq.b76c0358b4.ll (mutant of vmseq.ll)intrinsic_vmseq_mask_vi_nxv32i8_i8-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O3

Generated 2026-11-29 14:49 UTC.