fallback: translate: sdiv <vscale x 2 x i32>

Run:main-04ca53e65f-20261014-113325
Kind:fallback
Category:translate: sdiv <vscale x 2 x i32> NEW
Occurrences:2 in 2 configs, 1 test files
Snippet from:and-add-lsr.995eb91d5a.ll (mutant of and-add-lsr.ll) @and_add_lsr_vec2 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+v
Local check:reproduces at 04ca53e65f
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global i128

define <vscale x 2 x i32> @and_add_lsr_vec2(<vscale x 2 x i32> %x, <vscale x 2 x i32> %y) {
  %LGV = load i128, ptr @G.2, align 4
  %1 = add <vscale x 2 x i32> %x, splat (i32 4095)
  %B = sdiv <vscale x 2 x i32> %1, zeroinitializer
  %C = icmp ult i128 18446744073709551616, %LGV
  store i1 %C, ptr poison, align 1
  ret <vscale x 2 x i32> %B
}

Reproduce:

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

Local llc output:

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

Occurrences (2):

InputFunctionConfig
and-add-lsr.995eb91d5a.ll (mutant of and-add-lsr.ll)and_add_lsr_vec2-mtriple=riscv64 -verify-machineinstrs -mattr=+v
and-add-lsr.b1740a1820.ll (mutant of and-add-lsr.ll)and_add_lsr_vec2-mtriple=riscv32 -verify-machineinstrs -mattr=+v

Generated 2026-10-15 08:05 UTC.