miscompile: miscompile rv64: addi,andi,beqz,bnez,ld,li
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | miscompile |
| Category: | miscompile rv64: addi,andi,beqz,bnez,ld,li M |
| Occurrences: | 1 in 1 configs, 1 test files |
| Snippet from: | stores-of-loads-merging.ef442835.43b28abd7a.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 -O3 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not applicable: Compiler Explorer compiles RISC-V but cannot run it |
Snippet:
@G.1 = external global i1
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
br i1 %L, label %T, label %F
BB: ; preds = %T
%C = icmp uge i1 %L, %L
%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
store i1 %C, ptr @G.1, align 1
ret void
T: ; preds = %0
br label %BB
F: ; preds = %0
ret void
}
Reproduce:
./exec_oracle.py --flags '-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+zvfh,+m -O3' --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 -O3 -global-isel=0
b1: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+zvfh,+m -O0 -global-isel=0
b2: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+zvfh,+m -O3 -global-isel -global-isel-abort=2
Occurrences (1):
| Input | Function | Config |
|---|
| stores-of-loads-merging.ef442835.43b28abd7a.ll (mutant of stores-of-loads-merging.ef442835.ll) | two_float_rotate | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+zvfh,+m -O3 |
Generated 2026-11-29 14:49 UTC.