miscompile: miscompile rv32: andi,fle.s,fmv.w.x,lbu,li,lui

Run:explore-b577f07195-20261129-105236
Kind:miscompile
Category:miscompile rv32: andi,fle.s,fmv.w.x,lbu,li,lui NEW M
Occurrences:1 in 1 configs, 1 test files
Snippet from:fixed-vectors-extract-i1.63900160d0.ll (mutant of fixed-vectors-extract-i1.ll) @extractelt_v1i1 via llvm-extract
Config:-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v -O0
Local check:reproduces at b577f07195
Compiler Explorer:not applicable: Compiler Explorer compiles RISC-V but cannot run it

Snippet:

; Function Attrs: nounwind
define i1 @extractelt_v1i1(ptr %x, i64 %idx) #0 {
  %A = alloca i1, align 1
  store i1 poison, ptr %A, align 1
  %a = load <1 x i8>, ptr %x, align 1
  %b = icmp eq <1 x i8> %a, zeroinitializer
  %c = extractelement <1 x i1> %b, i64 %idx
  %C = fcmp ult float 1.401300e-45, +qnan
  store i1 %C, ptr %A, align 1
  ret i1 %c
}

attributes #0 = { nounwind }

Reproduce:

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

Local execution result:

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

Occurrences (1):

InputFunctionConfig
fixed-vectors-extract-i1.63900160d0.ll (mutant of fixed-vectors-extract-i1.ll)extractelt_v1i1-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v -O0

Generated 2026-11-29 14:49 UTC.