miscompile: miscompile rv64: add,andi,auipc,beqz,bnez,lbu
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | miscompile |
| Category: | miscompile rv64: add,andi,auipc,beqz,bnez,lbu NEW M |
| Occurrences: | 1 in 1 configs, 1 test files |
| Snippet from: | unaligned-load-store.62ffa59e.d0ef0aa8.e7d77ce9c4.ll (mutant of unaligned-load-store.62ffa59e.d0ef0aa8.ll) @merge_stores_i8_i32 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+zba,+zvfh -O2 -code-model=medium |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not applicable: Compiler Explorer compiles RISC-V but cannot run it |
Snippet:
@G.3 = external global i128
@G.4 = external global i1
define void @merge_stores_i8_i32(ptr %p) {
%LGV = load i1, ptr @G.4, align 1
%LGV1 = load i128, ptr @G.3, align 4
%B = add i128 170141183460469231731687303715884105727, %LGV1
store i8 0, ptr %p, align 1
%p2 = getelementptr inbounds i8, ptr %p, i32 1
store i8 0, ptr %p2, align 1
%p3 = getelementptr i8, ptr %p, i32 2
%L = load i1, ptr %p3, align 1
store i128 %B, ptr @G.3, align 4
br i1 %L, label %T, label %F
BB: ; preds = %F
%G = getelementptr bfloat, ptr %p, i1 false
store i8 0, ptr %p3, align 1
%p4 = getelementptr i8, ptr %p, i32 3
store i8 0, ptr %p4, align 1
store ptr %G, ptr %p4, align 8
ret void
T: ; preds = %0
%1 = phi i1 [ %LGV, %0 ]
store i1 %1, ptr %p2, align 1
ret void
F: ; preds = %0
br label %BB
}
Reproduce:
./exec_oracle.py --flags '-mtriple=riscv64 -verify-machineinstrs -mattr=+zba,+zvfh -O2 -code-model=medium' --funcs merge_stores_i8_i32 snippet.ll
Local execution result:
64 of 64 inputs differ (first: #0)
SelectionDAG hash f49f388c7c8010a7, GlobalISel hash 34af030589e1ae63
b0: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zba,+zvfh -code-model=medium -O2 -global-isel=0
b1: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zba,+zvfh -code-model=medium -O0 -global-isel=0
b2: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zba,+zvfh -code-model=medium -O2 -global-isel -global-isel-abort=2
Occurrences (1):
| Input | Function | Config |
|---|
| unaligned-load-store.62ffa59e.d0ef0aa8.e7d77ce9c4.ll (mutant of unaligned-load-store.62ffa59e.d0ef0aa8.ll) | merge_stores_i8_i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zba,+zvfh -O2 -code-model=medium |
Generated 2026-11-29 14:49 UTC.