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

Run:explore-b577f07195-20261129-105236
Kind:miscompile
Category:miscompile rv64: add,addi,andi,beq,bnez,call
Occurrences:2 in 1 configs, 1 test files
Snippet from:pr139075.6465d626.1a71daf8.270f02b1.dbd1a84d24.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 -O1
Local check:reproduces at b577f07195
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 -O1' --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 -O1 -global-isel=0
b1: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zvl16384b,+zfa,+zvkb,+zbb -O0 -global-isel=0
b2: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zvl16384b,+zfa,+zvkb,+zbb -O1 -global-isel -global-isel-abort=2

Occurrences (2):

InputFunctionConfig
pr139075.6465d626.1a71daf8.270f02b1.dbd1a84d24.ll (mutant of pr139075.6465d626.1a71daf8.270f02b1.ll)a-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zvl16384b,+zfa,+zvkb,+zbb -O1
pr139075.6465d626.1a71daf8.270f02b1.lla-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zvl16384b,+zfa,+zvkb,+zbb -O1

Generated 2026-11-29 14:49 UTC.