miscompile: miscompile rv32: addi,and,andi,beqz,bnez,call
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | miscompile |
| Category: | miscompile rv32: addi,and,andi,beqz,bnez,call NEW M |
| Occurrences: | 1 in 1 configs, 1 test files |
| Snippet from: | float-isnan.fccc6d6b.79a07fb5a6.ll (mutant of float-isnan.fccc6d6b.ll) @float_not_nan via llvm-extract |
| Config: | -mtriple=riscv32 -target-abi ilp32f -verify-machineinstrs -mattr=+f,+zve64d,+zvbb -O1 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not applicable: Compiler Explorer compiles RISC-V but cannot run it |
Snippet:
@G = external global i1
; Function Attrs: nounwind
define zeroext i1 @float_not_nan(float %a) #0 {
%B = sub <8 x i8> zeroinitializer, splat (i8 -128)
%A = alloca i1, align 1
%L = load i1, ptr %A, align 1
store i1 poison, ptr %A, align 1
store <8 x i8> %B, ptr %A, align 8
br i1 %L, label %T, label %F
BB: ; preds = %F
%LGV = load i1, ptr @G, align 1
%C = fcmp ole float %a, 4.200000e+01
%C2 = fcmp true float %a, %a
%1 = fcmp ord float %a, 0.000000e+00
%B1 = srem i1 %1, %LGV
store i1 %C, ptr %A, align 1
store i1 %B1, ptr @G, align 1
store i1 %C2, ptr %A, align 1
ret i1 %1
T: ; preds = %0
%C4 = fcmp ule float %a, %a
ret i1 %C4
F: ; preds = %0
br label %BB
}
attributes #0 = { nounwind }
Reproduce:
./exec_oracle.py --flags '-mtriple=riscv32 -target-abi ilp32f -verify-machineinstrs -mattr=+f,+zve64d,+zvbb -O1' --funcs float_not_nan snippet.ll
Local execution result:
1 of 64 inputs differ (first: #58)
SelectionDAG hash 72e5edec6f23ba6d, GlobalISel hash 1272b9ae102b3352
b0: llc -mtriple=riscv32 -target-abi ilp32f -verify-machineinstrs -mattr=+f,+zve64d,+zvbb -O1 -global-isel=0
b1: llc -mtriple=riscv32 -target-abi ilp32f -verify-machineinstrs -mattr=+f,+zve64d,+zvbb -O0 -global-isel=0
b2: llc -mtriple=riscv32 -target-abi ilp32f -verify-machineinstrs -mattr=+f,+zve64d,+zvbb -O1 -global-isel -global-isel-abort=2
Occurrences (1):
| Input | Function | Config |
|---|
| float-isnan.fccc6d6b.79a07fb5a6.ll (mutant of float-isnan.fccc6d6b.ll) | float_not_nan | -mtriple=riscv32 -target-abi ilp32f -verify-machineinstrs -mattr=+f,+zve64d,+zvbb -O1 |
Generated 2026-11-29 14:49 UTC.