miscompile: miscompile rv32: add,addi,and,andi,beq,beqz
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | miscompile |
| Category: | miscompile rv32: add,addi,and,andi,beq,beqz M |
| Occurrences: | 3 in 3 configs, 1 test files |
| Snippet from: | mem.8f2b3cb5.3a22d576.3ad8652a.f267ef18.da5692ab.4e8a0aeeb4.ll (mutant of mem.8f2b3cb5.3a22d576.3ad8652a.f267ef18.da5692ab.ll) @load_sext_zext_anyext_i1_i16 via llvm-extract + llvm-reduce |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zve32x -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) {
SW_D:
%1 = load i1, ptr %a, align 1
%2 = sext i1 %1 to i16
%3 = add i16 %0, %2
ret i16 %3
}
Reproduce:
./exec_oracle.py --flags '-mtriple=riscv32 -verify-machineinstrs -mattr=+zve32x -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=+zve32x -O3 -global-isel=0
b1: llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zve32x -O0 -global-isel=0
b2: llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zve32x -O3 -global-isel -global-isel-abort=2
Occurrences (3):
| Input | Function | Config |
|---|
| mem.8f2b3cb5.3a22d576.3ad8652a.f267ef18.da5692ab.4c77369ab9.ll (mutant of mem.8f2b3cb5.3a22d576.3ad8652a.f267ef18.da5692ab.ll) | load_sext_zext_anyext_i1_i16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zvbb -O3 |
| mem.8f2b3cb5.3a22d576.3ad8652a.f267ef18.da5692ab.4e8a0aeeb4.ll (mutant of mem.8f2b3cb5.3a22d576.3ad8652a.f267ef18.da5692ab.ll) | load_sext_zext_anyext_i1_i16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zve32x -O3 |
| mem.8f2b3cb5.3a22d576.3ad8652a.f267ef18.da5692ab.f24ab5ee22.ll (mutant of mem.8f2b3cb5.3a22d576.3ad8652a.f267ef18.da5692ab.ll) | load_sext_zext_anyext_i1_i16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zvbb,+zfh -O2 |
Generated 2026-11-29 14:49 UTC.