miscompile: miscompile rv64: add,addi,bne,j,lbu,ld

Run:explore-b577f07195-20261129-105236
Kind:miscompile
Category:miscompile rv64: add,addi,bne,j,lbu,ld M
Occurrences:3 in 3 configs, 3 test files
Snippet from:stores-of-loads-merging.f68f9e8d.cdaa9fe6.c09c8ecd.f5a4015411.ll (mutant of stores-of-loads-merging.f68f9e8d.cdaa9fe6.c09c8ecd.ll) @i8_i16_rotate via llvm-extract + llvm-reduce
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+zvfh,+xtheadba,+zfh,+a -O2
Local check:reproduces at b577f07195
Compiler Explorer:not applicable: Compiler Explorer compiles RISC-V but cannot run it

Snippet:

define ptr @i8_i16_rotate(ptr %p) {
BB1:
  %L1 = load i1, ptr %p, align 1
  %0 = sext i1 %L1 to i64
  %G = getelementptr i8, ptr %p, i64 %0
  ret ptr %G
}

Reproduce:

./exec_oracle.py --flags '-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+zvfh,+xtheadba,+zfh,+a -O2' --funcs i8_i16_rotate snippet.ll

Local execution result:

62 of 64 inputs differ (first: #1)
SelectionDAG hash 5cd881f1d7025c0c, GlobalISel hash 194efefd0800944d
b0: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+zvfh,+xtheadba,+zfh,+a -O2 -global-isel=0
b1: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+zvfh,+xtheadba,+zfh,+a -O0 -global-isel=0
b2: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+zvfh,+xtheadba,+zfh,+a -O2 -global-isel -global-isel-abort=2

Occurrences (3):

InputFunctionConfig
stores-of-loads-merging.f68f9e8d.cdaa9fe6.c09c8ecd.a8e60e20.01cfdc89a1.ll (mutant of stores-of-loads-merging.f68f9e8d.cdaa9fe6.c09c8ecd.a8e60e20.ll)i8_i16_rotate-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+zvfh,+xtheadba,+zfh,+zvkb -O3
stores-of-loads-merging.f68f9e8d.cdaa9fe6.c09c8ecd.f5a4015411.ll (mutant of stores-of-loads-merging.f68f9e8d.cdaa9fe6.c09c8ecd.ll)i8_i16_rotate-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+zvfh,+xtheadba,+zfh,+a -O2
stores-of-loads-merging.f68f9e8d.cdaa9fe6.ea7d9a72.749d0c56.8da1268e4f.ll (mutant of stores-of-loads-merging.f68f9e8d.cdaa9fe6.ea7d9a72.749d0c56.ll)i8_i16_rotate-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+b,+xtheadba,+c -O2 -code-model=small

Generated 2026-11-29 14:49 UTC.