fallback: translate: mul i1

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: mul i1 M
Occurrences:3 in 3 configs, 3 test files, 22 more counted only
Snippet from:attributes-andes.255e781074.ll (mutant of attributes-andes.ll) @addi via llvm-extract
Config:-mtriple=riscv64 -mattr=+zdinx -O3 -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i1
@G.1 = external global i1

define i32 @addi(i32 %a) {
  %B = mul i1 false, false
  %C = icmp ult i32 %a, %a
  %1 = add i32 %a, 1
  store i1 %B, ptr @G, align 1
  store i1 %C, ptr @G.1, align 1
  ret i32 %1
}

Reproduce:

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

Local llc output:

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

Occurrences (3):

InputFunctionConfig
atomic-cmpxchg-branch-on-result.8d3a38377e.ll (mutant of atomic-cmpxchg-branch-on-result.ll)cmpxchg_and_branch1-mtriple=riscv64 -verify-machineinstrs -mattr=+a,+zacas,+zabha,+zdinx -O0
attributes-andes.255e781074.ll (mutant of attributes-andes.ll)addi-mtriple=riscv64 -mattr=+zdinx -O3 -verify-machineinstrs
double-intrinsics-strict.b8040ba846.ll (mutant of double-intrinsics-strict.ll)lrint_f64-mtriple=riscv64 -verify-machineinstrs -disable-strictnode-mutation -target-abi=lp64 -mattr=+zdinx,+zicsr -O1

Generated 2026-11-29 14:49 UTC.