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

Run:main-d9924131a4-20261128-102057
Kind:fallback
Category:translate: sdiv <vscale x N x i1> M
Occurrences:3 in 3 configs, 2 test files
Snippet from:vmand-to-masked-compare.fb6b619461.ll (mutant of vmand-to-masked-compare.ll) @and_icmp_chain via llvm-extract
Config:-mtriple=riscv64 -mattr=+v -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global i128

define <vscale x 2 x i1> @and_icmp_chain(<vscale x 2 x i32> %a, <vscale x 2 x i32> %b, <vscale x 2 x i32> %c, <vscale x 2 x i32> %d, i64 %vl) {
  %LGV = load i128, ptr @G.2, align 4
  %m1 = call <vscale x 2 x i1> @llvm.riscv.vmslt.nxv2i32.nxv2i32.i64(<vscale x 2 x i32> %a, <vscale x 2 x i32> %b, i64 %vl)
  %B = sdiv <vscale x 2 x i1> %m1, zeroinitializer
  %C = icmp ult i128 18446744073709551616, %LGV
  store i1 %C, ptr poison, align 1
  ret <vscale x 2 x i1> %B
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare <vscale x 2 x i1> @llvm.riscv.vmslt.nxv2i32.nxv2i32.i64(<vscale x 2 x i32>, <vscale x 2 x i32>, i64) #0

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

Reproduce:

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

Local llc output:

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

Occurrences (3):

InputFunctionConfig
vmand-to-masked-compare.fb6b619461.ll (mutant of vmand-to-masked-compare.ll)and_icmp_chain-mtriple=riscv64 -mattr=+v -verify-machineinstrs
xtheadvdot-vmaqaus.9c3e07615a.ll (mutant of xtheadvdot-vmaqaus.ll)intrinsic_th_vmaqaus_mask_vx_nxv8i32_i8_nxv32i8-mtriple=riscv64 -mattr=+xtheadvdot -verify-machineinstrs
xtheadvdot-vmaqaus.b2f8a9b584.ll (mutant of xtheadvdot-vmaqaus.ll)intrinsic_th_vmaqaus_mask_vx_nxv8i32_i8_nxv32i8-mtriple=riscv32 -mattr=+xtheadvdot -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.