fallback: translate: sdiv i64

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: sdiv i64 M
Occurrences:7 in 7 configs, 7 test files, 78 more counted only
Snippet from:div.8aac6fe74d.ll (mutant of div.ll) @sdiv64_constant_lhs via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zhinx -O0
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i64 @sdiv64_constant_lhs(i64 %a) #0 {
  %1 = sdiv i64 10, %a
  %C = fcmp one double +qnan, 4.940660e-324
  store i1 %C, ptr poison, align 1
  ret i64 %1
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: sdiv: '  %1 = sdiv i64 10, %a' (in function: sdiv64_constant_lhs)
warning: Instruction selection used fallback path for sdiv64_constant_lhs

Occurrences (7):

InputFunctionConfig
div-by-constant.a03119c1c1.ll (mutant of div-by-constant.ll)sdiv64_constant_no_srai-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O2
div.8aac6fe74d.ll (mutant of div.ll)sdiv64_constant_lhs-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zhinx -O0
rotl-rotr.62bc06892f.ll (mutant of rotl-rotr.ll)rotl_64-mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadbb,+zdinx -O2
rv64xtheadbb.c09fec5197.ll (mutant of rv64xtheadbb.ll)zextw_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+xtheadbb,+zfinx,+zbb -O2
shifts.1fe2b900ae.ll (mutant of shifts.ll)fshr64_minsize-mtriple=riscv64 -verify-machineinstrs -mattr=+zvbb,+zdinx -O2 -code-model=small
sifive_sf_vsettnt.6ef60efb87.ll (mutant of sifive_sf_vsettnt.ll)test_sf_vsettnt_e16w2-mtriple=riscv64 -verify-machineinstrs -mattr=+xsfmmbase,+zdinx,+zhinx -O0
stacksave-stackrestore.e219694803.ll (mutant of stacksave-stackrestore.ll)test_scoped_alloca-mtriple=riscv64 -mattr=+zicond,+zfinx -O1 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.