fallback: translate: ashr <N x i8>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: ashr <N x i8> M |
| Occurrences: | 4 in 4 configs, 4 test files, 8 more counted only |
| Snippet from: | inline-asm-zhinx-constraint-r.8877cf9690.ll (mutant of inline-asm-zhinx-constraint-r.ll) @constraint_cr_half via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zdinx,+zhinx -O1 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@gh = external global half
; Function Attrs: nounwind
define half @constraint_cr_half(half %a) #0 {
%B = ashr <8 x i8> splat (i8 -128), splat (i8 127)
%1 = load half, ptr @gh, align 2
%2 = tail call half asm "fadd.h $0, $1, $2", "=^cr,^cr,^cr"(half %a, half %1)
store <8 x i8> %B, ptr poison, align 8
ret half %2
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zdinx,+zhinx -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zdinx,+zhinx -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: ashr: ' %B = ashr <8 x i8> splat (i8 -128), splat (i8 127)' (in function: constraint_cr_half)
warning: Instruction selection used fallback path for constraint_cr_half
Occurrences (4):
| Input | Function | Config |
|---|
| clmul.2faf2b2a7a.ll (mutant of clmul.ll) | clmul_i4_noimplicitfloat | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbc,+zfinx,+zbb -O1 |
| half-imm.cb01f51fd8.ll (mutant of half-imm.ll) | half_negative_zero | -mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinx -O3 |
| inline-asm-zhinx-constraint-r.8877cf9690.ll (mutant of inline-asm-zhinx-constraint-r.ll) | constraint_cr_half | -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zdinx,+zhinx -O1 |
| urem-seteq-illegal-types.14ba4d8f8c.ll (mutant of urem-seteq-illegal-types.ll) | test_urem_negative_odd | -mtriple=riscv32 -mattr=+zbkb,+zfinx -O1 -code-model=small -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.