fallback: translate: srem i16
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: srem i16 M |
| Occurrences: | 3 in 3 configs, 3 test files, 7 more counted only |
| Snippet from: | half-convert.9a1a5cfb20.ll (mutant of half-convert.ll) @fcvt_si_h via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinx -O1 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define i16 @fcvt_si_h(half %a) #0 {
%B = srem i16 1, 0
%1 = fptosi half %a to i16
store i16 %B, ptr poison, align 2
ret i16 %1
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinx -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinx -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: srem: ' %B = srem i16 1, 0' (in function: fcvt_si_h)
warning: Instruction selection used fallback path for fcvt_si_h
Occurrences (3):
| Input | Function | Config |
|---|
| div-by-constant.6437c5aae7.ll (mutant of div-by-constant.ll) | udiv16_constant_add | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zba,+zbb,+zhinx -O1 |
| double-imm.4636c3326b.ll (mutant of double-imm.ll) | negzero_sel | -mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zdinx,+zcb,+zbs -O0 |
| half-convert.9a1a5cfb20.ll (mutant of half-convert.ll) | fcvt_si_h | -mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinx -O1 |
Generated 2026-11-29 14:49 UTC.