miscompile: miscompile rv64: andi,beqz,bnez,ld,lw,rori

Run:explore-d9924131a4-20261128-105811
Kind:miscompile
Category:miscompile rv64: andi,beqz,bnez,ld,lw,rori NEW M
Occurrences:1 in 1 configs, 1 test files
Snippet from:stores-of-loads-merging.37ca7c1700.ll (mutant of stores-of-loads-merging.ll) @two_float_rotate via llvm-extract
Config:-mtriple=riscv64 -mattr=+v,+b,+zvfh,+m -O1 -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not applicable: Compiler Explorer compiles RISC-V but cannot run it

Snippet:

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
  %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
  ret void
}

Reproduce:

./exec_oracle.py --flags '-mtriple=riscv64 -mattr=+v,+b,+zvfh,+m -O1 -verify-machineinstrs' --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 -mattr=+v,+b,+zvfh,+m -verify-machineinstrs -O1 -global-isel=0
b1: llc -mtriple=riscv64 -mattr=+v,+b,+zvfh,+m -verify-machineinstrs -O0 -global-isel=0
b2: llc -mtriple=riscv64 -mattr=+v,+b,+zvfh,+m -verify-machineinstrs -O1 -global-isel -global-isel-abort=2

Occurrences (1):

InputFunctionConfig
stores-of-loads-merging.37ca7c1700.ll (mutant of stores-of-loads-merging.ll)two_float_rotate-mtriple=riscv64 -mattr=+v,+b,+zvfh,+m -O1 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.