fallback: translate: call llvm.fshl.i16

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.fshl.i16 M
Occurrences:3 in 3 configs, 1 test files, 8 more counted only
Snippet from:rotl-rotr.9cd420ed82.ll (mutant of rotl-rotr.ll) @rotl_i16 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadbb,+zfinx,+m -O0 -code-model=medium
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i16 @rotl_i16(i16 %x, i16 %z) {
  %f = call i16 @llvm.fshl.i16(i16 %x, i16 %x, i16 %z)
  %B = lshr i1 false, true
  store i1 %B, ptr poison, align 1
  ret i16 %f
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (3):

InputFunctionConfig
rotl-rotr.62bc06892f.ll (mutant of rotl-rotr.ll)rotl_i16-mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadbb,+zdinx -O2
rotl-rotr.9cd420ed82.ll (mutant of rotl-rotr.ll)rotl_i16-mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadbb,+zfinx,+m -O0 -code-model=medium
rotl-rotr.aec6aa959e.ll (mutant of rotl-rotr.ll)rotl_i16-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O0 -code-model=medium

Generated 2026-11-29 14:49 UTC.