fallback: translate: call llvm.fshr.i16

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.fshr.i16 M
Occurrences:3 in 3 configs, 1 test files, 5 more counted only
Snippet from:rotl-rotr.0039e50707.ll (mutant of rotl-rotr.ll) @rotr_i16 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O0
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i16 @rotr_i16(i16 %x, i16 %z) {
  %f = call i16 @llvm.fshr.i16(i16 %x, i16 %x, i16 %z)
  %C = icmp eq i16 %f, %f
  store i1 %C, ptr poison, align 1
  ret i16 %f
}

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

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

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O0 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.fshr.i16: '  %f = call i16 @llvm.fshr.i16(i16 %x, i16 %x, i16 %z)' (in function: rotr_i16)
warning: Instruction selection used fallback path for rotr_i16

Occurrences (3):

InputFunctionConfig
rotl-rotr.0039e50707.ll (mutant of rotl-rotr.ll)rotr_i16-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O0
rotl-rotr.1e3955a3f1.ll (mutant of rotl-rotr.ll)rotr_i16-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zfinx -O1
rotl-rotr.e7a4bf213d.ll (mutant of rotl-rotr.ll)rotr_i16-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2 -code-model=medium

Generated 2026-11-29 14:49 UTC.