miscompile: miscompile rv64: andi,beqz,bnez,lui,sb,sd

Run:explore-db12fc36f6-20261127-115111
Kind:miscompile
Category:miscompile rv64: andi,beqz,bnez,lui,sb,sd M
Occurrences:2 in 2 configs, 1 test files
Snippet from:unaligned-load-store.62ffa59e.c709cf84.9b36d606.668d55cf30.ll (mutant of unaligned-load-store.62ffa59e.c709cf84.9b36d606.ll) @merge_stores_i8_i32 via llvm-extract + llvm-reduce
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+unaligned-scalar-mem,+zvbb,+zbkb -O1
Local check:reproduces at db12fc36f6
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=+unaligned-scalar-mem,+zvbb,+zbkb -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=+unaligned-scalar-mem,+zvbb,+zbkb -O1 -global-isel=0
b1: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+unaligned-scalar-mem,+zvbb,+zbkb -O0 -global-isel=0
b2: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+unaligned-scalar-mem,+zvbb,+zbkb -O1 -global-isel -global-isel-abort=2

Occurrences (2):

InputFunctionConfig
unaligned-load-store.62ffa59e.c709cf84.9b36d606.3be7f8f7bb.ll (mutant of unaligned-load-store.62ffa59e.c709cf84.9b36d606.ll)merge_stores_i8_i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zvbb,+zbkb -O2
unaligned-load-store.62ffa59e.c709cf84.9b36d606.668d55cf30.ll (mutant of unaligned-load-store.62ffa59e.c709cf84.9b36d606.ll)merge_stores_i8_i32-mtriple=riscv64 -verify-machineinstrs -mattr=+unaligned-scalar-mem,+zvbb,+zbkb -O1

Generated 2026-11-29 14:49 UTC.