miscompile: miscompile rv64: add,addi,andi,beq,bnez,fcvt.l.s

Run:explore-d9924131a4-20261128-105811
Kind:miscompile
Category:miscompile rv64: add,addi,andi,beq,bnez,fcvt.l.s M
Occurrences:1 in 1 configs, 1 test files
Snippet from:half-convert.8268b6ca.21218c28.2d30b7ba.68ae143716.ll (mutant of half-convert.8268b6ca.21218c28.2d30b7ba.ll) @fcvt_ui_h via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -target-abi lp64f -mattr=+zfhmin,+a,+zicond -O3
Local check:reproduces at d9924131a4
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 i16
@G.8 = external global i8

; Function Attrs: nounwind
define i16 @fcvt_ui_h(half %a) #0 {
  %A8 = alloca i1, align 1
  store i1 true, ptr %A8, align 1
  %A6 = alloca i1, align 1
  store i1 true, ptr %A6, align 1
  %A5 = alloca i8, align 1
  store i8 poison, ptr %A5, align 1
  %LGV3 = load i8, ptr @G.8, align 1
  %L7 = load i1, ptr %A6, align 1
  br i1 %L7, label %T, label %F

BB:                                               ; preds = %F, %T
  %LGV2 = load i16, ptr @G.6, align 2
  %C3 = icmp sle i16 0, %LGV2
  %A3 = alloca ptr, align 8
  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
  %C = icmp slt i128 %LGV, -1
  %1 = fptoui half %a to i16
  %B = or i128 %LGV, %LGV
  store i1 %C, ptr @G.2, align 1
  %B5 = and i1 %C3, %C3
  store i128 %B, ptr %A, align 4
  %G = getelementptr i128, ptr %A, i8 0
  %G11 = getelementptr half, ptr %A, i1 %B5
  store ptr %G, ptr %G11, align 8
  %B4 = mul i8 0, %LGV3
  store i1 %C3, ptr @G.2, align 1
  store i1 %B5, ptr %G, align 1
  store i8 %B4, ptr %A5, align 1
  ret i16 %1

T:                                                ; preds = %0
  br label %BB

F:                                                ; preds = %F, %0
  %L9 = load i1, ptr %A8, align 1
  br i1 %L9, label %F, label %BB
}

attributes #0 = { nounwind }

Reproduce:

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

Occurrences (1):

InputFunctionConfig
half-convert.8268b6ca.21218c28.2d30b7ba.68ae143716.ll (mutant of half-convert.8268b6ca.21218c28.2d30b7ba.ll)fcvt_ui_h-mtriple=riscv64 -verify-machineinstrs -target-abi lp64f -mattr=+zfhmin,+a,+zicond -O3

Generated 2026-11-29 14:49 UTC.