miscompile: miscompile rv64: addi,andi,fcvt.l.s,fcvt.wu.s,lbu,ld
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | miscompile |
| Category: | miscompile rv64: addi,andi,fcvt.l.s,fcvt.wu.s,lbu,ld NEW M |
| Occurrences: | 1 in 1 configs, 1 test files |
| Snippet from: | half-convert.8268b6ca.21218c28.3d78ceed.bef13a4143.ll (mutant of half-convert.8268b6ca.21218c28.3d78ceed.ll) @fcvt_ui_h via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -target-abi lp64f -mattr=+zfhmin,+zicond,+zbs,+zfa -O3 -code-model=small |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not applicable: Compiler Explorer compiles RISC-V but cannot run it |
Snippet:
@G.1 = external global i128
@G.2 = external global i1
@G.6 = external global i8
; Function Attrs: nounwind
define i16 @fcvt_ui_h(half %a) #0 {
%LGV2 = load i8, ptr @G.6, align 1
%A3 = alloca ptr, align 8
%L5 = load i1, ptr %A3, align 1
%L = load i8, ptr %A3, align 1
store ptr poison, ptr %A3, align 8
%A = alloca i128, align 8
store i128 poison, ptr %A, align 4
%LGV = load i128, ptr @G.1, align 4
%C4 = icmp ugt i8 %L, %LGV2
%B7 = lshr i1 %C4, %L5
%1 = fptoui half %a to i16
%B6 = sub i1 %C4, %L5
%B = or i128 %LGV, %LGV
store i1 %B7, ptr @G.2, align 1
store i128 %B, ptr %A, align 4
%G = getelementptr i128, ptr %A, i8 0
store ptr %G, ptr %A3, align 8
store i1 %B6, ptr @G.2, align 1
store i1 %C4, ptr @G.2, align 1
ret i16 %1
}
attributes #0 = { nounwind }
Reproduce:
./exec_oracle.py --flags '-mtriple=riscv64 -verify-machineinstrs -target-abi lp64f -mattr=+zfhmin,+zicond,+zbs,+zfa -O3 -code-model=small' --funcs fcvt_ui_h snippet.ll
Local execution result:
21 of 64 inputs differ (first: #1)
SelectionDAG hash 591594ef7dd87b7c, GlobalISel hash e80159fb23549387
b0: llc -mtriple=riscv64 -verify-machineinstrs -target-abi lp64f -mattr=+zfhmin,+zicond,+zbs,+zfa -code-model=small -O3 -global-isel=0
b1: llc -mtriple=riscv64 -verify-machineinstrs -target-abi lp64f -mattr=+zfhmin,+zicond,+zbs,+zfa -code-model=small -O0 -global-isel=0
b2: llc -mtriple=riscv64 -verify-machineinstrs -target-abi lp64f -mattr=+zfhmin,+zicond,+zbs,+zfa -code-model=small -O3 -global-isel -global-isel-abort=2
Occurrences (1):
| Input | Function | Config |
|---|
| half-convert.8268b6ca.21218c28.3d78ceed.bef13a4143.ll (mutant of half-convert.8268b6ca.21218c28.3d78ceed.ll) | fcvt_ui_h | -mtriple=riscv64 -verify-machineinstrs -target-abi lp64f -mattr=+zfhmin,+zicond,+zbs,+zfa -O3 -code-model=small |
Generated 2026-11-29 14:49 UTC.