fallback: translate: add i1

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: add i1 M
Occurrences:3 in 3 configs, 3 test files, 10 more counted only
Snippet from:rv32zba.eaaf4da71f.ll (mutant of rv32zba.ll) @mul_neg6 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zdinx -O3
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.5 = external global i1

define i32 @mul_neg6(i32 %a) {
  %B = add i1 true, false
  %c = mul i32 %a, -6
  store i1 %B, ptr @G.5, align 1
  ret i32 %c
}

Reproduce:

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

Local llc output:

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

Occurrences (3):

InputFunctionConfig
rv32zba.eaaf4da71f.ll (mutant of rv32zba.ll)mul_neg6-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zdinx -O3
zfhmin-half-intrinsics-strict.4f20987635.ll (mutant of zfhmin-half-intrinsics-strict.ll)lrint_f16-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zdinx -O3
zfhmin-half-intrinsics.fb9bb13267.ll (mutant of zfhmin-half-intrinsics.ll)lrint_f16-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinxmin -O0 -code-model=small

Generated 2026-11-29 14:49 UTC.