fallback: translate: udiv i1

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: udiv i1 M
Occurrences:4 in 4 configs, 4 test files, 25 more counted only
Snippet from:rv64zba.2c268a26d3.ll (mutant of rv64zba.ll) @addmul20 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zba,+zbb,+zvbb,+zhinx -O2
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i64 @addmul20(i64 %a, i64 %b) {
  %B = udiv i1 true, true
  %c = mul i64 %a, 20
  %d = add i64 %c, %b
  store i1 %B, ptr poison, align 1
  ret i64 %d
}

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zba,+zbb,+zvbb,+zhinx -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zba,+zbb,+zvbb,+zhinx -O2 -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: addmul20)
warning: Instruction selection used fallback path for addmul20

Occurrences (4):

InputFunctionConfig
fixed-vectors-vxor-vp.3bf9483517.ll (mutant of fixed-vectors-vxor-vp.ll)vxor_vx_v4i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O1
half-imm.1d6041c6db.ll (mutant of half-imm.ll)half_imm-mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinxmin -O0
rv64zba.2c268a26d3.ll (mutant of rv64zba.ll)addmul20-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zba,+zbb,+zvbb,+zhinx -O2
zfh-half-intrinsics-strict.5bb2a52adb.ll (mutant of zfh-half-intrinsics-strict.ll)sqrt_f16-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -disable-strictnode-mutation -mattr=+zhinx -O0

Generated 2026-11-29 14:49 UTC.