miscompile: miscompile rv64: add,addi,andi,beqz,bnez,lbu
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | miscompile |
| Category: | miscompile rv64: add,addi,andi,beqz,bnez,lbu M |
| Occurrences: | 3 in 3 configs, 2 test files |
| Snippet from: | unaligned-load-store.62ffa59e.d0ef0aa8.2c5e0d34.157a4e09ed.ll (mutant of unaligned-load-store.62ffa59e.d0ef0aa8.2c5e0d34.ll) @merge_stores_i8_i32 via llvm-extract + llvm-reduce |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+zba,+zvfh,+zicsr -O1 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not applicable: Compiler Explorer compiles RISC-V but cannot run it |
Snippet:
define void @merge_stores_i8_i32(ptr %p) {
%L = load i1, ptr %p, align 1
br i1 %L, label %common.ret, label %F
common.ret: ; preds = %F, %0
ret void
F: ; preds = %0
store i8 0, ptr %p, align 1
br label %common.ret
}
Reproduce:
./exec_oracle.py --flags '-mtriple=riscv64 -verify-machineinstrs -mattr=+zba,+zvfh,+zicsr -O1' --funcs merge_stores_i8_i32 snippet.ll
Local execution result:
62 of 64 inputs differ (first: #1)
SelectionDAG hash 0cb3ecf4e31b9ab6, GlobalISel hash 9b3f02907d6fb6ef
b0: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zba,+zvfh,+zicsr -O1 -global-isel=0
b1: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zba,+zvfh,+zicsr -O0 -global-isel=0
b2: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zba,+zvfh,+zicsr -O1 -global-isel -global-isel-abort=2
Occurrences (3):
| Input | Function | Config |
|---|
| udiv-const-optimization.36a0b958.d533d0ffd7.ll (mutant of udiv-const-optimization.36a0b958.ll) | udiv_by_21 | -mtriple=riscv64-unknown-linux-gnu -verify-machineinstrs -mattr=+m -O3 |
| unaligned-load-store.62ffa59e.d0ef0aa8.2c5e0d34.157a4e09ed.ll (mutant of unaligned-load-store.62ffa59e.d0ef0aa8.2c5e0d34.ll) | merge_stores_i8_i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zba,+zvfh,+zicsr -O1 |
| unaligned-load-store.62ffa59e.d0ef0aa8.2c5e0d34.58e1255b11.ll (mutant of unaligned-load-store.62ffa59e.d0ef0aa8.2c5e0d34.ll) | merge_stores_i8_i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zba,+zvfh,+c -O1 |
Generated 2026-11-29 14:49 UTC.