miscompile: miscompile rv32: addi,and,andi,beq,beqz,bltu

Run:explore-d9924131a4-20261128-105811
Kind:miscompile
Category:miscompile rv32: addi,and,andi,beq,beqz,bltu M
Occurrences:2 in 2 configs, 2 test files
Snippet from:fixed-vectors-extract-i1.be91b851.fcd750bb.45b79366ce.ll (mutant of fixed-vectors-extract-i1.be91b851.fcd750bb.ll) @extractelt_v1i1 via llvm-extract + llvm-reduce
Config:-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zbs -O2
Local check:reproduces at d9924131a4
Compiler Explorer:not applicable: Compiler Explorer compiles RISC-V but cannot run it

Snippet:

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

Reproduce:

./exec_oracle.py --flags '-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zbs -O2' --funcs extractelt_v1i1 snippet.ll

Local execution result:

32 of 64 inputs differ (first: #1)
SelectionDAG hash ac2a94b32b344940, GlobalISel hash ccbdc0f1543cc07f
b0: llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zbs -O2 -global-isel=0
b1: llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zbs -O0 -global-isel=0
b2: llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zbs -O2 -global-isel -global-isel-abort=2

Occurrences (2):

InputFunctionConfig
fixed-vectors-extract-i1.be91b851.fcd750bb.45b79366ce.ll (mutant of fixed-vectors-extract-i1.be91b851.fcd750bb.ll)extractelt_v1i1-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zbs -O2
fixed-vectors-extract-i1.be91b851.fcd750bb.778b34e2.37e70b6ae4.ll (mutant of fixed-vectors-extract-i1.be91b851.fcd750bb.778b34e2.ll)extractelt_v1i1-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zbs,+zfh -O3

Generated 2026-11-29 14:49 UTC.