fallback: translate: lshr i32

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: lshr i32 M
Occurrences:7 in 7 configs, 6 test files, 117 more counted only
Snippet from:xcvbitmanip.7ba5c4ff7f.ll (mutant of xcvbitmanip.ll) @test.cv.ff1 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+xcvbitmanip,+zdinx -O0 -code-model=small
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i32 @test.cv.ff1(i32 %a) {
  %B = lshr i32 %a, %a
  ret i32 %B
}

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+xcvbitmanip,+zdinx -O0 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+xcvbitmanip,+zdinx -O0 -code-model=small -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (7):

InputFunctionConfig
condbinops.8f9a4d74f9.ll (mutant of condbinops.ll)lshr32-mtriple=riscv64 -mattr=+zfinx -O2 -verify-machineinstrs
double-arith-strict.8a75c74d26.ll (mutant of double-arith-strict.ll)fmul_d-mtriple=riscv64 -verify-machineinstrs -disable-strictnode-mutation -target-abi=lp64 -mattr=+zdinx,+zicsr -O1
fpenv-xlen.37a78f9e9e.ll (mutant of fpenv-xlen.ll)func_set_fpenv-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O0
rv32zbb.8a41b60300.ll (mutant of rv32zbb.ll)sexth_extract_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+c,+zdinx -O1
rv64zbb.63a471d4f0.ll (mutant of rv64zbb.ll)ctlz_lshr_i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zcb,+zhinx -O2
rv64zbb.de9195bdf1.ll (mutant of rv64zbb.ll)sextb_extract_i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx,+zhinx -O3
xcvbitmanip.7ba5c4ff7f.ll (mutant of xcvbitmanip.ll)test.cv.ff1-mtriple=riscv32 -verify-machineinstrs -mattr=+xcvbitmanip,+zdinx -O0 -code-model=small

Generated 2026-11-29 14:49 UTC.