miscompile: miscompile rv64: add,addi,andi,beq,beqz,bnez

Run:explore-db12fc36f6-20261127-115111
Kind:miscompile
Category:miscompile rv64: add,addi,andi,beq,beqz,bnez M
Occurrences:2 in 2 configs, 2 test files
Snippet from:pr139075.6465d626.1a71daf8.270f02b1.91b8bffe9c.ll (mutant of pr139075.6465d626.1a71daf8.270f02b1.ll) @a via llvm-extract + llvm-reduce
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zvl16384b,+zfa,+zvkb,+zbb -O2 -code-model=small
Local check:reproduces at db12fc36f6
Compiler Explorer:not applicable: Compiler Explorer compiles RISC-V but cannot run it

Snippet:

define void @a(ptr %0, ptr %1) {
  call void @llvm.memcpy.p0.p0.i64(ptr %1, ptr %0, i64 2048, i1 false)
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias writeonly captures(none), ptr noalias readonly captures(none), i64, i1 immarg) #0

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }

Reproduce:

./exec_oracle.py --flags '-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zvl16384b,+zfa,+zvkb,+zbb -O2 -code-model=small' --funcs a snippet.ll

Local execution result:

64 of 64 inputs differ (first: #0)
SelectionDAG hash f1a15139ed37a68b, GlobalISel hash 324f8bba0735ee27
b0: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zvl16384b,+zfa,+zvkb,+zbb -code-model=small -O2 -global-isel=0
b1: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zvl16384b,+zfa,+zvkb,+zbb -code-model=small -O0 -global-isel=0
b2: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zvl16384b,+zfa,+zvkb,+zbb -code-model=small -O2 -global-isel -global-isel-abort=2

Occurrences (2):

InputFunctionConfig
fma-combine.c6ab806b.d68668dc.85da6b15.3ec87a4bab.ll (mutant of fma-combine.c6ab806b.d68668dc.85da6b15.ll)fnmadd_non_trivial-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zfa,+zvbb -O0
pr139075.6465d626.1a71daf8.270f02b1.91b8bffe9c.ll (mutant of pr139075.6465d626.1a71daf8.270f02b1.ll)a-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zvl16384b,+zfa,+zvkb,+zbb -O2 -code-model=small

Generated 2026-11-29 14:49 UTC.