miscompile: miscompile rv32: add,addi,and,andi,lbu,lh
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | miscompile |
| Category: | miscompile rv32: add,addi,and,andi,lbu,lh M |
| Occurrences: | 2 in 2 configs, 2 test files |
| Snippet from: | mem.8f2b3cb5.3a22d576.3ad8652a.f267ef18.74006f82.8d98f18fb4.ll (mutant of mem.8f2b3cb5.3a22d576.3ad8652a.f267ef18.74006f82.ll) @load_sext_zext_anyext_i1_i16 via llvm-extract + llvm-reduce |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zvbb,+zfa -O3 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not applicable: Compiler Explorer compiles RISC-V but cannot run it |
Snippet:
define i16 @load_sext_zext_anyext_i1_i16(ptr %a, i16 %0) {
%2 = load i1, ptr %a, align 1
%3 = sext i1 %2 to i16
%4 = add i16 %0, %3
ret i16 %4
}
Reproduce:
./exec_oracle.py --flags '-mtriple=riscv32 -verify-machineinstrs -mattr=+zvbb,+zfa -O3' --funcs load_sext_zext_anyext_i1_i16 snippet.ll
Local execution result:
62 of 64 inputs differ (first: #1)
SelectionDAG hash ac2a94b32b344940, GlobalISel hash f3cba22411256731
b0: llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zvbb,+zfa -O3 -global-isel=0
b1: llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zvbb,+zfa -O0 -global-isel=0
b2: llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zvbb,+zfa -O3 -global-isel -global-isel-abort=2
Occurrences (2):
| Input | Function | Config |
|---|
| mem.8f2b3cb5.3a22d576.3ad8652a.f267ef18.74006f82.8d98f18fb4.ll (mutant of mem.8f2b3cb5.3a22d576.3ad8652a.f267ef18.74006f82.ll) | load_sext_zext_anyext_i1_i16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zvbb,+zfa -O3 |
| mem.8f2b3cb5.3a22d576.3ad8652a.f267ef18.da5692ab.355332aa2e.ll (mutant of mem.8f2b3cb5.3a22d576.3ad8652a.f267ef18.da5692ab.ll) | load_sext_zext_anyext_i1_i16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zvbb -O0 |
Generated 2026-11-29 14:49 UTC.