fallback: translate: ashr i8

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: ashr i8 M
Occurrences:4 in 4 configs, 4 test files, 38 more counted only
Snippet from:double-convert.bc7bf7ac56.ll (mutant of double-convert.ll) @fcvt_w_s_sat_i8 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zdinx -O3
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define signext i8 @fcvt_w_s_sat_i8(double %a) #0 {
start:
  %B = ashr i8 -1, 127
  ret i8 %B
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: ashr: '  %B = ashr i8 -1, 127' (in function: fcvt_w_s_sat_i8)
warning: Instruction selection used fallback path for fcvt_w_s_sat_i8

Occurrences (4):

InputFunctionConfig
atomicrmw-max-min-umax-umin.28fa6c9854.ll (mutant of atomicrmw-max-min-umax-umin.ll)atomicrmw_umax_i8_monotonic-mtriple=riscv64 -mattr=+a,+m,+zdinx -O1 -verify-machineinstrs
double-br-fcmp.c53f6897c4.ll (mutant of double-br-fcmp.ll)br_fcmp_ueq-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zdinx -O1 -code-model=small
double-convert.bc7bf7ac56.ll (mutant of double-convert.ll)fcvt_w_s_sat_i8-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zdinx -O3
rv64p.bcd8433fae.ll (mutant of rv64p.ll)cls_i8-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zdinx -O1

Generated 2026-11-29 14:49 UTC.