fallback: translate: ashr i1

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: ashr i1 M
Occurrences:3 in 3 configs, 3 test files, 24 more counted only
Snippet from:short-forward-branch-opt-with-branch-with-immediates_32_uge.32b2de84a0.ll (mutant of short-forward-branch-opt-with-branch-with-immediates_32_uge.ll) @branch_with_immSFB_mv_minusOnefalsev_swapped via llvm-extract
Config:-verify-machineinstrs -mtriple=riscv32 -mattr=+zdinx -O2
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i32 @branch_with_immSFB_mv_minusOnefalsev_swapped(i32 %a, i32 %c, i32 %d) {
entry:
  %B = ashr i1 true, true
  %sel = select i1 %B, i32 -1, i32 %a
  ret i32 %sel
}

Reproduce:

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

Local llc output:

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

Occurrences (3):

InputFunctionConfig
inline-asm-mem-constraint-2.a8b84e1895.ll (mutant of inline-asm-mem-constraint-2.ll)constraint_o_with_multi_operands-mtriple=riscv64 -verify-machineinstrs -no-integrated-as -mattr=+zba,+zhinx -O0
shifts.1fe2b900ae.ll (mutant of shifts.ll)lshr64-mtriple=riscv64 -verify-machineinstrs -mattr=+zvbb,+zdinx -O2 -code-model=small
short-forward-branch-opt-with-branch-with-immediates_32_uge.32b2de84a0.ll (mutant of short-forward-branch-opt-with-branch-with-immediates_32_uge.ll)branch_with_immSFB_mv_minusOnefalsev_swapped-verify-machineinstrs -mtriple=riscv32 -mattr=+zdinx -O2

Generated 2026-11-29 14:49 UTC.