miscompile: miscompile rv64: add,addi,ld,lui,sd
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | miscompile |
| Category: | miscompile rv64: add,addi,ld,lui,sd M |
| Occurrences: | 1 in 1 configs, 1 test files |
| Snippet from: | scalar-stack-align.88eac47fc8.ll (mutant of scalar-stack-align.ll) @scalar_stack_align16 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+zve64x,+v -O1 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not applicable: Compiler Explorer compiles RISC-V but cannot run it |
Snippet:
@G = external global ptr
@G.1 = external global i32
; Function Attrs: nounwind
define ptr @scalar_stack_align16() #0 {
%LGV = load i32, ptr @G.1, align 4
%a = alloca <vscale x 2 x i32>, align 8
%G = getelementptr <8 x i8>, ptr %a, i32 %LGV
%c = alloca i64, align 16
call void @extern(ptr %a)
store ptr %c, ptr @G, align 8
store ptr %G, ptr %c, align 8
ret ptr %c
}
declare void @extern(ptr)
attributes #0 = { nounwind }
Reproduce:
./exec_oracle.py --flags '-mtriple=riscv64 -verify-machineinstrs -mattr=+zve64x,+v -O1' --funcs scalar_stack_align16 snippet.ll
Local execution result:
64 of 64 inputs differ (first: #0)
SelectionDAG hash 3d2665dbf810718b, GlobalISel hash f6027ac3229844c5
b0: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zve64x,+v -O1 -global-isel=0
b1: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zve64x,+v -O0 -global-isel=0
b2: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zve64x,+v -O1 -global-isel -global-isel-abort=2
Occurrences (1):
| Input | Function | Config |
|---|
| scalar-stack-align.88eac47fc8.ll (mutant of scalar-stack-align.ll) | scalar_stack_align16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zve64x,+v -O1 |
Generated 2026-11-29 14:49 UTC.