fallback: translate: sdiv i32

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: sdiv i32 M
Occurrences:8 in 8 configs, 8 test files, 98 more counted only
Snippet from:half-fcmp.25c189470c.ll (mutant of half-fcmp.ll) @fcmp_one via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinx -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i32 @fcmp_one(half %a, half %b) #0 {
  %B = sdiv i32 0, 2147483647
  ret i32 %B
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinx -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinx -O1 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: sdiv: '  %B = sdiv i32 0, 2147483647' (in function: fcmp_one)
warning: Instruction selection used fallback path for fcmp_one

Occurrences (8):

InputFunctionConfig
abds.8f070ebcf5.ll (mutant of abds.ll)abd_sub_i32-mtriple=riscv64 -mattr=+zbb,+zvbb,+zhinx -O2 -verify-machineinstrs
add-imm.a91de83eaa.ll (mutant of add-imm.ll)add32_sext_reject_on_rv64-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O3
div.8aac6fe74d.ll (mutant of div.ll)sdiv-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zhinx -O0
double-select-icmp.6982673ecf.ll (mutant of double-select-icmp.ll)select_icmp_ult-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zdinx -O1
half-fcmp.25c189470c.ll (mutant of half-fcmp.ll)fcmp_one-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinx -O1
imm.b4367c4b71.ll (mutant of imm.ll)li_rori_2-mtriple=riscv64 -riscv-constant-pool-for-large-ints=0 -verify-machineinstrs -mattr=+zba,+zdinx,+zcb -O0
lack-of-signed-truncation-check.b201769217.ll (mutant of lack-of-signed-truncation-check.ll)add_ultcmp_i32_i8-mtriple=riscv64-unknown-linux-gnu -mattr=+zdinx -O3 -verify-machineinstrs
rv64zfh-half-convert.ed8cb0aad8.ll (mutant of rv64zfh-half-convert.ll)uitofp_aext_i32_to_f16-mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinx,+zve32x,+xtheadba -O3

Generated 2026-11-29 14:49 UTC.