miscompile: miscompile rv64: fcvt.lu.s,slli,srli
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | miscompile |
| Category: | miscompile rv64: fcvt.lu.s,slli,srli M |
| Occurrences: | 1 in 1 configs, 1 test files |
| Snippet from: | rv64f-float-convert.a745d80300.ll (mutant of rv64f-float-convert.ll) @zext_fptoui via llvm-extract |
| Config: | -mtriple=riscv64 -target-abi=lp64f -verify-machineinstrs -mattr=+f,+zfh -O2 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not applicable: Compiler Explorer compiles RISC-V but cannot run it |
Snippet:
; Function Attrs: nounwind
define zeroext i32 @zext_fptoui(float %a) #0 {
%A = alloca i32, align 4
store i32 poison, ptr %A, align 4
%1 = fptoui float %a to i32
store i32 %1, ptr %A, align 4
ret i32 %1
}
attributes #0 = { nounwind }
Reproduce:
./exec_oracle.py --flags '-mtriple=riscv64 -target-abi=lp64f -verify-machineinstrs -mattr=+f,+zfh -O2' --funcs zext_fptoui snippet.ll
Local execution result:
7 of 64 inputs differ (first: #12)
SelectionDAG hash 7671f9994d454daf, GlobalISel hash b0327560e339d2be
b0: llc -mtriple=riscv64 -target-abi=lp64f -verify-machineinstrs -mattr=+f,+zfh -O2 -global-isel=0
b1: llc -mtriple=riscv64 -target-abi=lp64f -verify-machineinstrs -mattr=+f,+zfh -O0 -global-isel=0
b2: llc -mtriple=riscv64 -target-abi=lp64f -verify-machineinstrs -mattr=+f,+zfh -O2 -global-isel -global-isel-abort=2
Occurrences (1):
| Input | Function | Config |
|---|
| rv64f-float-convert.a745d80300.ll (mutant of rv64f-float-convert.ll) | zext_fptoui | -mtriple=riscv64 -target-abi=lp64f -verify-machineinstrs -mattr=+f,+zfh -O2 |
Generated 2026-11-29 14:49 UTC.