miscompile: miscompile rv64: andi,auipc,fadd.d,fcvt.lu.d,fcvt.wu.d,flt.d
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | miscompile |
| Category: | miscompile rv64: andi,auipc,fadd.d,fcvt.lu.d,fcvt.wu.d,flt.d NEW M |
| Occurrences: | 1 in 1 configs, 1 test files |
| Snippet from: | rv64d-double-convert.cd92eb00.2d303421.c1b247c890.ll (mutant of rv64d-double-convert.cd92eb00.2d303421.ll) @zext_fptoui via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+d,+zcb,+zbb,+a,+zba -O3 -code-model=medium |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not applicable: Compiler Explorer compiles RISC-V but cannot run it |
Snippet:
@G.3 = external global i32
@G.4 = external global i1
@G.5 = external global i8
@G.6 = external global double
; Function Attrs: nounwind
define zeroext i32 @zext_fptoui(double %a) #0 {
%A3 = alloca i1, align 1
store i1 poison, ptr %A3, align 1
%A = alloca i8, align 1
%L = load double, ptr %A, align 8
store i8 poison, ptr %A, align 1
%LGV1 = load i8, ptr @G.5, align 1
%LGV = load i32, ptr @G.3, align 4
%B = urem i8 %LGV1, 16
%1 = fptoui double %a to i32
%B1 = fsub double %a, 1.000000e+00
%C = icmp sle i32 %1, %LGV
store i1 %C, ptr @G.4, align 1
store i8 %B, ptr %A, align 1
%C2 = fcmp uge double %B1, %L
store double %B1, ptr @G.6, align 8
store i1 %C2, ptr %A3, align 1
ret i32 %1
}
attributes #0 = { nounwind }
Reproduce:
./exec_oracle.py --flags '-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+d,+zcb,+zbb,+a,+zba -O3 -code-model=medium' --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 -verify-machineinstrs -target-abi=lp64d -mattr=+d,+zcb,+zbb,+a,+zba -code-model=medium -O3 -global-isel=0
b1: llc -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+d,+zcb,+zbb,+a,+zba -code-model=medium -O0 -global-isel=0
b2: llc -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+d,+zcb,+zbb,+a,+zba -code-model=medium -O3 -global-isel -global-isel-abort=2
Occurrences (1):
| Input | Function | Config |
|---|
| rv64d-double-convert.cd92eb00.2d303421.c1b247c890.ll (mutant of rv64d-double-convert.cd92eb00.2d303421.ll) | zext_fptoui | -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+d,+zcb,+zbb,+a,+zba -O3 -code-model=medium |
Generated 2026-11-29 14:49 UTC.