fallback: translate: ashr i32

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: ashr i32 M
Occurrences:5 in 5 configs, 5 test files, 112 more counted only
Snippet from:select-zbb.0e6f8c4258.ll (mutant of select-zbb.ll) @select_umax_3 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zfinx -O2
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i32 @select_umax_3(i1 zeroext %cond, i32 %a) {
entry:
  %B = ashr i32 %a, %a
  ret i32 %B
}

Reproduce:

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

Local llc output:

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

Occurrences (5):

InputFunctionConfig
alu32.7c13accfb8.ll (mutant of alu32.ll)sra_negative_constant_lhs-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2 -code-model=small
float-select-icmp.b43ecc5f05.ll (mutant of float-select-icmp.ll)select_icmp_sgt_zero-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zfinx -O0
iabs.98761a06a0.ll (mutant of iabs.ll)abs32-mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zfinx -O3
rv64zbb-zbkb.c686fe4a0f.ll (mutant of rv64zbb-zbkb.ll)xnor_i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zbs,+zhinx -O1
select-zbb.0e6f8c4258.ll (mutant of select-zbb.ll)select_umax_3-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zfinx -O2

Generated 2026-11-29 14:49 UTC.