miscompile: miscompile rv64: fcvt.lu.d,lui,lw,sb,slli,slt

Run:explore-db12fc36f6-20261127-115111
Kind:miscompile
Category:miscompile rv64: fcvt.lu.d,lui,lw,sb,slli,slt NEW M
Occurrences:1 in 1 configs, 1 test files
Snippet from:rv64d-double-convert.d28ed84d47.ll (mutant of rv64d-double-convert.ll) @zext_fptoui via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+d,+zcb,+zbb -O3
Local check:reproduces at db12fc36f6
Compiler Explorer:not applicable: Compiler Explorer compiles RISC-V but cannot run it

Snippet:

@G.3 = external global i32
@G.4 = external global i1

; Function Attrs: nounwind
define zeroext i32 @zext_fptoui(double %a) #0 {
  %LGV = load i32, ptr @G.3, align 4
  %1 = fptoui double %a to i32
  %C = icmp sle i32 %1, %LGV
  store i1 %C, ptr @G.4, align 1
  ret i32 %1
}

attributes #0 = { nounwind }

Reproduce:

./exec_oracle.py --flags '-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+d,+zcb,+zbb -O3' --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 -O3 -global-isel=0
b1: llc -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+d,+zcb,+zbb -O0 -global-isel=0
b2: llc -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+d,+zcb,+zbb -O3 -global-isel -global-isel-abort=2

Occurrences (1):

InputFunctionConfig
rv64d-double-convert.d28ed84d47.ll (mutant of rv64d-double-convert.ll)zext_fptoui-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64d -mattr=+d,+zcb,+zbb -O3

Generated 2026-11-29 14:49 UTC.