miscompile: miscompile rv64: add,addi,andi,beqz,bnez,lbu
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | miscompile |
| Category: | miscompile rv64: add,addi,andi,beqz,bnez,lbu M |
| Occurrences: | 1 in 1 configs, 1 test files |
| Snippet from: | stores-of-loads-merging.ef442835.73e457c665.ll (mutant of stores-of-loads-merging.ef442835.ll) @two_float_rotate via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+zvfh,+m,+zihintpause -O2 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not applicable: Compiler Explorer compiles RISC-V but cannot run it |
Snippet:
@G.1 = external global ptr
@G.2 = external global ptr
@G.3 = external global ptr
declare void @g()
define void @two_float_rotate(ptr %p, ptr %q) {
%p0 = getelementptr i8, ptr %p, i64 0
%L = load i1, ptr %p0, align 1
%p1 = getelementptr i8, ptr %p, i64 4
%G5 = getelementptr i1, ptr %q, i64 42
%L2 = load i32, ptr %p1, align 4
%G3 = getelementptr i128, ptr %p, i32 %L2
store ptr %G3, ptr @G.2, align 8
store ptr %G5, ptr @G.3, align 8
br i1 %L, label %T, label %F
BB: ; preds = %T
%x0 = load float, ptr %p0, align 8
%x1 = load float, ptr %p1, align 4
call void @g()
%q0 = getelementptr i8, ptr %q, i64 0
%q1 = getelementptr i8, ptr %q, i64 4
store float %x1, ptr %q0, align 8
store float %x0, ptr %q1, align 4
ret void
T: ; preds = %0
br label %BB
F: ; preds = %0
%G = getelementptr ptr, ptr %p0, i16 0
store ptr %G, ptr @G.1, align 8
ret void
}
Reproduce:
./exec_oracle.py --flags '-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+zvfh,+m,+zihintpause -O2' --funcs two_float_rotate snippet.ll
Local execution result:
62 of 64 inputs differ (first: #1)
SelectionDAG hash 72bd0d7dbf15e118, GlobalISel hash 0cb3ecf4e31b9ab6
b0: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+zvfh,+m,+zihintpause -O2 -global-isel=0
b1: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+zvfh,+m,+zihintpause -O0 -global-isel=0
b2: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+zvfh,+m,+zihintpause -O2 -global-isel -global-isel-abort=2
Occurrences (1):
| Input | Function | Config |
|---|
| stores-of-loads-merging.ef442835.73e457c665.ll (mutant of stores-of-loads-merging.ef442835.ll) | two_float_rotate | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+zvfh,+m,+zihintpause -O2 |
Generated 2026-11-29 14:49 UTC.