miscompile: miscompile rv64: add,addi,and,lbu,ld,li

Run:explore-d9924131a4-20261128-105811
Kind:miscompile
Category:miscompile rv64: add,addi,and,lbu,ld,li M
Occurrences:2 in 2 configs, 1 test files
Snippet from:fixed-vectors-extract-i1.7a96e8ee.6c49832b.341cfbaa.7afe3b83.31398d17.453437c759.ll (mutant of fixed-vectors-extract-i1.7a96e8ee.6c49832b.341cfbaa.7afe3b83.31398d17.ll) @extractelt_v1i1 via llvm-extract + llvm-reduce
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zfa,+zfh,+c,+v,+zicsr,+f -O3
Local check:reproduces at d9924131a4
Compiler Explorer:not applicable: Compiler Explorer compiles RISC-V but cannot run it

Snippet:

define i1 @extractelt_v1i1() {
  %c = extractelement <1 x i1> zeroinitializer, i64 1
  ret i1 %c
}

Reproduce:

./exec_oracle.py --flags '-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zfa,+zfh,+c,+v,+zicsr,+f -O3' --funcs extractelt_v1i1 snippet.ll

Local execution result:

32 of 64 inputs differ (first: #1)
SelectionDAG hash 3f0814173d11af12, GlobalISel hash e80159fb23549387
b0: llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zfa,+zfh,+c,+v,+zicsr,+f -O3 -global-isel=0
b1: llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zfa,+zfh,+c,+v,+zicsr,+f -O0 -global-isel=0
b2: llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zfa,+zfh,+c,+v,+zicsr,+f -O3 -global-isel -global-isel-abort=2

Occurrences (2):

InputFunctionConfig
fixed-vectors-extract-i1.7a96e8ee.6c49832b.341cfbaa.7afe3b83.31398d17.453437c759.ll (mutant of fixed-vectors-extract-i1.7a96e8ee.6c49832b.341cfbaa.7afe3b83.31398d17.ll)extractelt_v1i1-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zfa,+zfh,+c,+v,+zicsr,+f -O3
fixed-vectors-extract-i1.7a96e8ee.6c49832b.341cfbaa.7afe3b83.31398d17.bc344e018c.ll (mutant of fixed-vectors-extract-i1.7a96e8ee.6c49832b.341cfbaa.7afe3b83.31398d17.ll)extractelt_v1i1-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zfa,+zfh,+c,+v,+zicsr,+f,+zicond -O3 -code-model=small

Generated 2026-11-29 14:49 UTC.