fallback: legalize: G_SDIV <N x i64>

Run:main-db12fc36f6-20261127-110859
Kind:fallback
Category:legalize: G_SDIV <N x i64>
Occurrences:13 in 5 configs, 2 test files
Snippet from:fixed-vectors-int.ll @sdiv_v2i64 via llvm-extract
Config:-mtriple=riscv32 -mattr=+v -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define void @sdiv_v2i64(ptr %x, ptr %y) {
  %a = load <2 x i64>, ptr %x, align 16
  %b = load <2 x i64>, ptr %y, align 16
  %c = sdiv <2 x i64> %a, %b
  store <2 x i64> %c, ptr %x, align 16
  ret void
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %4:_(<2 x i64>) = G_SDIV %2:_, %3:_ (in function: sdiv_v2i64)
warning: Instruction selection used fallback path for sdiv_v2i64

Occurrences (13):

InputFunctionConfig
fixed-vectors-int.llsdiv_v2i64-mtriple=riscv32 -mattr=+v -verify-machineinstrs
fixed-vectors-int.llmulhs_v2i64-mtriple=riscv32 -mattr=+v -verify-machineinstrs
fixed-vectors-int.llsdiv_v4i64-mtriple=riscv32 -mattr=+v -verify-machineinstrs
fixed-vectors-int.llmulhs_v4i64-mtriple=riscv32 -mattr=+v -verify-machineinstrs
fixed-vectors-int.llmulhs_vx_v2i64-mtriple=riscv32 -mattr=+v -verify-machineinstrs
fixed-vectors-int.llsdiv_v2i64-mtriple=riscv64 -mattr=+v -verify-machineinstrs
fixed-vectors-int.llmulhs_v2i64-mtriple=riscv64 -mattr=+v -verify-machineinstrs
fixed-vectors-int.llsdiv_v4i64-mtriple=riscv64 -mattr=+v -verify-machineinstrs
fixed-vectors-int.llmulhs_v4i64-mtriple=riscv64 -mattr=+v -verify-machineinstrs
fixed-vectors-int.llmulhs_vx_v2i64-mtriple=riscv64 -mattr=+v -verify-machineinstrs
rv32zbs.075e70aec0.ll (mutant of rv32zbs.ll)icmp_eq_nonpow2-mtriple=riscv32 -mattr=+zbs -verify-machineinstrs
rv32zbs.997675a424.ll (mutant of rv32zbs.ll)icmp_eq_nonpow2-mtriple=riscv32 -mattr=+zbs,+zbb -verify-machineinstrs
rv32zbs.e4c25c0e44.ll (mutant of rv32zbs.ll)icmp_eq_nonpow2-mtriple=riscv32 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.