miscompile: miscompile rv64: addi,call,fadd.h,fcvt.lu.h,fcvt.wu.h,feq.h

Run:explore-db12fc36f6-20261127-115111
Kind:miscompile
Category:miscompile rv64: addi,call,fadd.h,fcvt.lu.h,fcvt.wu.h,feq.h M
Occurrences:3 in 3 configs, 1 test files
Snippet from:half-convert.733f7dcd.277faf91.84f8953e.0de45265.f5741a01d8.ll (mutant of half-convert.733f7dcd.277faf91.84f8953e.0de45265.ll) @fcvt_wu_s_i8 via llvm-extract + llvm-reduce
Config:-mtriple=riscv64 -verify-machineinstrs -target-abi lp64d -mattr=+zfh,+zcb,+c,+v,+zicond -O3
Local check:reproduces at db12fc36f6
Compiler Explorer:not applicable: Compiler Explorer compiles RISC-V but cannot run it

Snippet:

define zeroext i8 @fcvt_wu_s_i8() {
  %1 = fptoui half +qnan to i8
  ret i8 %1
}

Reproduce:

./exec_oracle.py --flags '-mtriple=riscv64 -verify-machineinstrs -target-abi lp64d -mattr=+zfh,+zcb,+c,+v,+zicond -O3' --funcs fcvt_wu_s_i8 snippet.ll

Local execution result:

64 of 64 inputs differ (first: #0)
SelectionDAG hash d49d8e17f8dbcd7c, GlobalISel hash ddfb3624bb44b711
b0: llc -mtriple=riscv64 -verify-machineinstrs -target-abi lp64d -mattr=+zfh,+zcb,+c,+v,+zicond -O3 -global-isel=0
b1: llc -mtriple=riscv64 -verify-machineinstrs -target-abi lp64d -mattr=+zfh,+zcb,+c,+v,+zicond -O0 -global-isel=0
b2: llc -mtriple=riscv64 -verify-machineinstrs -target-abi lp64d -mattr=+zfh,+zcb,+c,+v,+zicond -O3 -global-isel -global-isel-abort=2

Occurrences (3):

InputFunctionConfig
half-convert.733f7dcd.277faf91.84f8953e.0de45265.2e4068af23.ll (mutant of half-convert.733f7dcd.277faf91.84f8953e.0de45265.ll)fcvt_wu_s_i8-mtriple=riscv64 -verify-machineinstrs -target-abi lp64d -mattr=+zfh,+zcb,+c -O2
half-convert.733f7dcd.277faf91.84f8953e.0de45265.77aec30431.ll (mutant of half-convert.733f7dcd.277faf91.84f8953e.0de45265.ll)fcvt_wu_s_i8-mtriple=riscv64 -verify-machineinstrs -target-abi lp64d -mattr=+zfh,+c,+zvkb -O1
half-convert.733f7dcd.277faf91.84f8953e.0de45265.f5741a01d8.ll (mutant of half-convert.733f7dcd.277faf91.84f8953e.0de45265.ll)fcvt_wu_s_i8-mtriple=riscv64 -verify-machineinstrs -target-abi lp64d -mattr=+zfh,+zcb,+c,+v,+zicond -O3

Generated 2026-11-29 14:49 UTC.