fallback: translate: sdiv <N x i32>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: sdiv <N x i32> M
Occurrences:3 in 3 configs, 3 test files, 15 more counted only
Snippet from:half-convert.3db26493e9.ll (mutant of half-convert.ll) @fcvt_wu_h_signext via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinx,+zvbb -O2
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define signext i32 @fcvt_wu_h_signext(half %a) #0 {
  %B = sdiv <4 x i32> splat (i32 65536), splat (i32 -1)
  %1 = fptoui half %a to i32
  store <4 x i32> %B, ptr poison, align 16
  ret i32 %1
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinx,+zvbb -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinx,+zvbb -O2 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: sdiv: '  %B = sdiv <4 x i32> splat (i32 65536), splat (i32 -1)' (in function: fcvt_wu_h_signext)
warning: Instruction selection used fallback path for fcvt_wu_h_signext

Occurrences (3):

InputFunctionConfig
fold-addi-loadstore.f1385a03af.ll (mutant of fold-addi-loadstore.ll)load_const_ok-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O3
fp-fcanonicalize.afc330a298.ll (mutant of fp-fcanonicalize.ll)fcanonicalize_v2f32_nnan-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx,+m -O0
half-convert.3db26493e9.ll (mutant of half-convert.ll)fcvt_wu_h_signext-mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinx,+zvbb -O2

Generated 2026-11-29 14:49 UTC.