fallback: translate: lshr i64

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: lshr i64 M
Occurrences:11 in 11 configs, 10 test files, 90 more counted only
Snippet from:xqcibm-extract.630c9d1e13.ll (mutant of xqcibm-extract.ll) @extu_from_and_lshr_i64 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O2
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i64 @extu_from_and_lshr_i64(i64 %x) {
  %shifted = lshr i64 %x, 46
  %masked = and i64 4095, %shifted
  ret i64 %masked
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: lshr: '  %shifted = lshr i64 %x, 46' (in function: extu_from_and_lshr_i64)
warning: Instruction selection used fallback path for extu_from_and_lshr_i64

Occurrences (11):

InputFunctionConfig
bswap-bitreverse.2182923b8a.ll (mutant of bswap-bitreverse.ll)test_bitreverse_bswap_i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O2
float-convert.ed08474660.ll (mutant of float-convert.ll)fcvt_s_l-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zfinx -O1 -code-model=small
half-select-fcmp.70c6235e6b.ll (mutant of half-select-fcmp.ll)select_fcmp_true-mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinx -O3 -code-model=small
half-select-fcmp.7b2c9db9da.ll (mutant of half-select-fcmp.ll)select_fcmp_uge_negone_zero-mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zdinx -O2
rv64xtheadbb.c09fec5197.ll (mutant of rv64xtheadbb.ll)zext_i64_srliw-mtriple=riscv64 -verify-machineinstrs -mattr=+xtheadbb,+zfinx,+zbb -O2
rv64zbb-zbkb.d2c17724c7.ll (mutant of rv64zbb-zbkb.ll)ror_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx,+zicsr -O2
rv64zbb.17700dc0e6.ll (mutant of rv64zbb.ll)sexth_extract_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx,+xtheadba -O2 -code-model=medium
rv64zknh-intrinsic-autoupgrade.2c5ea54ebe.ll (mutant of rv64zknh-intrinsic-autoupgrade.ll)sha256sum1_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zknh,+zicond,+zhinx -O2
shifts.6b72e5bc66.ll (mutant of shifts.ll)lshr64-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O2 -code-model=small
signed-truncation-check.c3f626ae1f.ll (mutant of signed-truncation-check.ll)shifts_eqcmp_i64_i32-mtriple=riscv64-unknown-linux-gnu -mattr=+zbb,+m,+zdinx -O2 -verify-machineinstrs
xqcibm-extract.630c9d1e13.ll (mutant of xqcibm-extract.ll)extu_from_and_lshr_i64-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O2

Generated 2026-11-29 14:49 UTC.