fallback: translate: and i8

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: and i8 M
Occurrences:4 in 4 configs, 4 test files, 35 more counted only
Snippet from:cmov-branch-opt.2e2e4fff28.ll (mutant of cmov-branch-opt.ll) @select_or via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+short-forward-branch-ialu,+zhinx,+zicond -O2
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global half

define i32 @select_or(i32 %A, i32 %B, i8 %cond) {
entry:
  %and = and i8 %cond, 1
  %cmp10 = icmp eq i8 %and, 0
  %0 = or i32 %B, %A
  %1 = select i1 %cmp10, i32 %A, i32 %0
  %B1 = fdiv half 0.000000e+00, 6.550400e+04
  store half %B1, ptr @G.1, align 2
  ret i32 %1
}

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+short-forward-branch-ialu,+zhinx,+zicond -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+short-forward-branch-ialu,+zhinx,+zicond -O2 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: and: '  %and = and i8 %cond, 1' (in function: select_or)
warning: Instruction selection used fallback path for select_or

Occurrences (4):

InputFunctionConfig
cmov-branch-opt.2e2e4fff28.ll (mutant of cmov-branch-opt.ll)select_or-mtriple=riscv64 -verify-machineinstrs -mattr=+short-forward-branch-ialu,+zhinx,+zicond -O2
fixed-vectors-compress-int.cf1f9692.285442a11f.ll (mutant of fixed-vectors-compress-int.cf1f9692.ll)vector_compress_v8i32-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O0
smulh.5067c9e4af.ll (mutant of smulh.ll)smulh_v2i64-mtriple=riscv32 -mattr=+m,+zfinx -O3 -verify-machineinstrs
ssub_sat.9bdf02edd7.ll (mutant of ssub_sat.ll)func8-mtriple=riscv32 -mattr=+m,+zhinx -O0 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.