miscompile: miscompile rv32: fcvt.w.s,fcvt.wu.s
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | miscompile |
| Category: | miscompile rv32: fcvt.w.s,fcvt.wu.s M |
| Occurrences: | 1 in 1 configs, 1 test files |
| Snippet from: | half-convert.479b16e1c2.ll (mutant of half-convert.ll) @fcvt_ui_h via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -target-abi ilp32d -mattr=+d,+zfhmin,+zbkb -O1 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not applicable: Compiler Explorer compiles RISC-V but cannot run it |
Snippet:
; Function Attrs: nounwind
define i16 @fcvt_ui_h(half %a) #0 {
%A = alloca i1, align 1
store i1 poison, ptr %A, align 1
%C = fcmp ole double 4.940660e-324, +inf
%1 = fptoui half %a to i16
store i1 %C, ptr %A, align 1
ret i16 %1
}
attributes #0 = { nounwind }
Reproduce:
./exec_oracle.py --flags '-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32d -mattr=+d,+zfhmin,+zbkb -O1' --funcs fcvt_ui_h snippet.ll
Local execution result:
21 of 64 inputs differ (first: #1)
SelectionDAG hash 2634316ee39b08f3, GlobalISel hash ccbdc0f1543cc07f
b0: llc -mtriple=riscv32 -verify-machineinstrs -target-abi ilp32d -mattr=+d,+zfhmin,+zbkb -O1 -global-isel=0
b1: llc -mtriple=riscv32 -verify-machineinstrs -target-abi ilp32d -mattr=+d,+zfhmin,+zbkb -O0 -global-isel=0
b2: llc -mtriple=riscv32 -verify-machineinstrs -target-abi ilp32d -mattr=+d,+zfhmin,+zbkb -O1 -global-isel -global-isel-abort=2
Occurrences (1):
| Input | Function | Config |
|---|
| half-convert.479b16e1c2.ll (mutant of half-convert.ll) | fcvt_ui_h | -mtriple=riscv32 -verify-machineinstrs -target-abi ilp32d -mattr=+d,+zfhmin,+zbkb -O1 |
Generated 2026-11-29 14:49 UTC.