fallback: translate: call llvm.fshr.i64

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.fshr.i64 M
Occurrences:5 in 5 configs, 4 test files, 11 more counted only
Snippet from:rv64zbb-zbkb.bdeaefbc7b.ll (mutant of rv64zbb-zbkb.ll) @ror_i64 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zbkb,+zdinx -O3
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i64 @ror_i64(i64 %a, i64 %b) #0 {
  %or = tail call i64 @llvm.fshr.i64(i64 %a, i64 %a, i64 %b)
  %B = ashr i64 %or, %or
  ret i64 %B
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.fshr.i64(i64, i64, i64) #1

attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.fshr.i64: '  %or = tail call i64 @llvm.fshr.i64(i64 %a, i64 %a, i64 %b)' (in function: ror_i64)
warning: Instruction selection used fallback path for ror_i64

Occurrences (5):

InputFunctionConfig
rv64zbb-zbkb.bdeaefbc7b.ll (mutant of rv64zbb-zbkb.ll)ror_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zbkb,+zdinx -O3
rv64zbb-zbkb.c686fe4a0f.ll (mutant of rv64zbb-zbkb.ll)rori_i64_fshr-mtriple=riscv64 -verify-machineinstrs -mattr=+zbs,+zhinx -O1
rv64zbb-zbkb.d2c17724c7.ll (mutant of rv64zbb-zbkb.ll)rori_i64_fshr-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx,+zicsr -O2
rvp-scalar.efcc168f4c.ll (mutant of rvp-scalar.ll)srxi_i64_64-mtriple=riscv64 -mattr=+experimental-p,+zfinx -O3 -verify-machineinstrs
shifts.fc181fb327.ll (mutant of shifts.ll)fshr64_minsize-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zve32x -O0

Generated 2026-11-30 16:04 UTC.