miscompile: miscompile rv64: beqz,fabs.s,fcvt.l.s,fcvt.s.w,fcvt.w.s,flt.s
| Run: | main-b577f07195-20261129-101839 |
| Kind: | miscompile |
| Category: | miscompile rv64: beqz,fabs.s,fcvt.l.s,fcvt.s.w,fcvt.w.s,flt.s |
| Occurrences: | 7 in 1 configs, 1 test files |
| Snippet from: | float-round-conv.ll @test_floor_si8 via llvm-extract + llvm-reduce |
| Config: | -mtriple=riscv64 -mattr=+f -verify-machineinstrs -target-abi=lp64f |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not applicable: Compiler Explorer compiles RISC-V but cannot run it |
Snippet:
define i8 @test_floor_si8(float %x) {
%b = fptosi float %x to i8
ret i8 %b
}
Reproduce:
./exec_oracle.py --flags '-mtriple=riscv64 -mattr=+f -verify-machineinstrs -target-abi=lp64f' --funcs test_floor_si8 snippet.ll
Local execution result:
3 of 64 inputs differ (first: #12)
SelectionDAG hash a0c2d26326127464, GlobalISel hash 5289e0e02a921a1b
b0: llc -mtriple=riscv64 -mattr=+f -verify-machineinstrs -target-abi=lp64f -O2 -global-isel=0
b1: llc -mtriple=riscv64 -mattr=+f -verify-machineinstrs -target-abi=lp64f -O0 -global-isel=0
b2: llc -mtriple=riscv64 -mattr=+f -verify-machineinstrs -target-abi=lp64f -O2 -global-isel -global-isel-abort=2
Occurrences (7):
| Input | Function | Config |
|---|
| float-round-conv.ll | test_floor_si8 | -mtriple=riscv64 -mattr=+f -verify-machineinstrs -target-abi=lp64f |
| float-round-conv.ll | test_floor_si16 | -mtriple=riscv64 -mattr=+f -verify-machineinstrs -target-abi=lp64f |
| float-round-conv.ll | test_ceil_si8 | -mtriple=riscv64 -mattr=+f -verify-machineinstrs -target-abi=lp64f |
| float-round-conv.ll | test_ceil_si16 | -mtriple=riscv64 -mattr=+f -verify-machineinstrs -target-abi=lp64f |
| float-round-conv.ll | test_trunc_si8 | -mtriple=riscv64 -mattr=+f -verify-machineinstrs -target-abi=lp64f |
| float-round-conv.ll | test_trunc_si16 | -mtriple=riscv64 -mattr=+f -verify-machineinstrs -target-abi=lp64f |
| float-round-conv.ll | test_round_si8 | -mtriple=riscv64 -mattr=+f -verify-machineinstrs -target-abi=lp64f |
Generated 2026-11-29 14:49 UTC.