fallback: translate: udiv i1

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: udiv i1 M
Occurrences:4 in 4 configs, 4 test files, 21 more counted only
Snippet from:half-convert.9dc48e20c1.ll (mutant of half-convert.ll) @fcvt_w_h_signext via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zdinx,+zhinx -O3
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i1

; Function Attrs: nounwind
define signext i32 @fcvt_w_h_signext(half %a) #0 {
  %B = udiv i1 true, true
  %1 = fptosi half %a to i32
  store i1 %B, ptr @G.1, align 1
  ret i32 %1
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: udiv: '  %B = udiv i1 true, true' (in function: fcvt_w_h_signext)
warning: Instruction selection used fallback path for fcvt_w_h_signext

Occurrences (4):

InputFunctionConfig
abdu-neg.40b9c964ea.ll (mutant of abdu-neg.ll)abd_minmax_i128-mtriple=riscv32 -mattr=+zbb,+zfinx -O1 -verify-machineinstrs
attributes.54f26395c2.ll (mutant of attributes.ll)atomic_load_i8_seq_cst-mtriple=riscv32 -mattr=+zve32x,+zhinx -O2 -verify-machineinstrs
half-convert.9dc48e20c1.ll (mutant of half-convert.ll)fcvt_w_h_signext-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zdinx,+zhinx -O3
prefetch.1dee747a84.ll (mutant of prefetch.ll)test_prefetch_read_locality_2-mtriple=riscv64 -verify-machineinstrs -mattr=+zicbop,+zfinx -O3

Generated 2026-11-29 14:49 UTC.