fallback: translate: lshr i32

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: lshr i32 M
Occurrences:12 in 12 configs, 11 test files, 85 more counted only
Snippet from:get-register-noreserve.e6eff5a309.ll (mutant of get-register-noreserve.ll) @get_csr_vlenb via llvm-extract
Config:-mtriple=riscv32 -mattr=+zdinx,+zicond -O2 -code-model=medium -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i32 @get_csr_vlenb() #0 {
entry:
  %B = lshr i32 1, -2147483648
  ret i32 %B
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: lshr: '  %B = lshr i32 1, -2147483648' (in function: get_csr_vlenb)
warning: Instruction selection used fallback path for get_csr_vlenb

Occurrences (12):

InputFunctionConfig
atomic-load-store.a6d9401387.ll (mutant of atomic-load-store.ll)atomic_store_i32_release-mtriple=riscv32 -verify-machineinstrs -mattr=+a,+ztso,+no-trailing-seq-cst-fence,+zfinx -O0
bswap-bitreverse.cdb05c35d0.ll (mutant of bswap-bitreverse.ll)pr55484-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O2
calllowering-zfinx-zhinx.56f9ed0b5a.ll (mutant of calllowering-zfinx-zhinx.ll)caller_float-mtriple=riscv32 -mattr=+zhinx,+zvkb -O1 -verify-machineinstrs
fastcc-without-f-reg.b4b0eccbd7.ll (mutant of fastcc-without-f-reg.ll)f-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O2
fixed-vectors-select-addsub.a821f53634.ll (mutant of fixed-vectors-select-addsub.ll)select_addsub_v8i2-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O1
get-register-noreserve.e6eff5a309.ll (mutant of get-register-noreserve.ll)get_csr_vlenb-mtriple=riscv32 -mattr=+zdinx,+zicond -O2 -code-model=medium -verify-machineinstrs
rv32xtheadbs.7b0ea45967.ll (mutant of rv32xtheadbs.ll)th_tst_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadbs,+zhinx -O1 -code-model=medium
rv32zba.f9d45a5f9d.ll (mutant of rv32zba.ll)srli_3_sh2add-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zdinx -O1
rv64xtheadbb.216a091842.ll (mutant of rv64xtheadbb.ll)sexti1_i32-mtriple=riscv64 -verify-machineinstrs -mattr=+xtheadbb,+zfinx -O0 -code-model=small
rv64xtheadbb.6eef497924.ll (mutant of rv64xtheadbb.ll)ctlz_i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx,+zbb -O3
short-forward-branch-opt-min-max.67ce96eb94.ll (mutant of short-forward-branch-opt-min-max.ll)select_example_smin-mtriple=riscv32 -mattr=+zbb,+short-forward-branch-ialu,+xtheadba,+zfinx -O1 -verify-machineinstrs
xqccmp-push-pop-popret.94546c6617.ll (mutant of xqccmp-push-pop-popret.ll)pushpopret2-mtriple=riscv64 -frame-pointer=all -verify-machineinstrs -mattr=+xqccmp,+zdinx,+zhinx -O2

Generated 2026-11-29 14:49 UTC.