fallback: translate: lshr i64

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: lshr i64 M
Occurrences:6 in 6 configs, 6 test files, 40 more counted only
Snippet from:rv64xtheadbb.17e7422636.ll (mutant of rv64xtheadbb.ll) @zext_bf_i64 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+xtheadbb,+b,+zhinx -O0 -code-model=medium
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i64 @zext_bf_i64(i64 %a) #0 {
  %B = lshr i64 %a, -9223372036854775808
  ret i64 %B
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+xtheadbb,+b,+zhinx -O0 -code-model=medium -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+xtheadbb,+b,+zhinx -O0 -code-model=medium -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: lshr: '  %B = lshr i64 %a, -9223372036854775808' (in function: zext_bf_i64)
warning: Instruction selection used fallback path for zext_bf_i64

Occurrences (6):

InputFunctionConfig
bittest.73cb64af1c.ll (mutant of bittest.ll)bittest_11_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx,+zicsr -O2
fp128.d473445d3c.ll (mutant of fp128.ll)sitofp_i64-mtriple=riscv32 -mattr=+zhinx -O1 -verify-machineinstrs
rv32zbb.595b8d2f36.ll (mutant of rv32zbb.ll)sexth_extract_i64-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+xtheadba -O0
rv32zbs.1fecf94185.ll (mutant of rv32zbs.ll)bexti_i64-mtriple=riscv32 -verify-machineinstrs -mattr=+zbs,+zbb,+zdinx -O3
rv64xtheadbb.17e7422636.ll (mutant of rv64xtheadbb.ll)zext_bf_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+xtheadbb,+b,+zhinx -O0 -code-model=medium
uadd_sat.ca67ef96f0.ll (mutant of uadd_sat.ll)func2-mtriple=riscv32 -mattr=+m,+zbb,+zdinx -O1 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.