fallback: translate: shl i8

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: shl i8 M
Occurrences:3 in 3 configs, 3 test files, 8 more counted only
Snippet from:double-convert.5c9bc981a3.ll (mutant of double-convert.ll) @fcvt_d_w_i8 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O3
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define double @fcvt_d_w_i8(i8 signext %a) #0 {
  %B = shl i8 %a, %a
  %1 = sitofp i8 %a to double
  store i8 %B, ptr poison, align 1
  ret double %1
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: shl: '  %B = shl i8 %a, %a' (in function: fcvt_d_w_i8)
warning: Instruction selection used fallback path for fcvt_d_w_i8

Occurrences (3):

InputFunctionConfig
andn-zext-lowmask.fe26a3399b.ll (mutant of andn-zext-lowmask.ll)andn_zext_lowmask_i32_i8-mtriple=riscv32 -verify-machineinstrs -mattr=+zicond,+zfinx -O3 -code-model=small
double-convert.5c9bc981a3.ll (mutant of double-convert.ll)fcvt_d_w_i8-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O3
memset-inline.4d6fea8976.ll (mutant of memset-inline.ll)test_memset_inline_2bytes-mtriple=riscv64 -mattr=+zhinx -O1 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.