miscompile: miscompile rv32: add,addi,andi,lbu,lui,lw
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | miscompile |
| Category: | miscompile rv32: add,addi,andi,lbu,lui,lw M |
| Occurrences: | 2 in 2 configs, 2 test files |
| Snippet from: | mem.8f2b3cb5.3a22d576.53f0836d.a0b46eae27.ll (mutant of mem.8f2b3cb5.3a22d576.53f0836d.ll) @load_sext_zext_anyext_i1_i16 via llvm-extract + llvm-reduce |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfh -O1 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not applicable: Compiler Explorer compiles RISC-V but cannot run it |
Snippet:
define i16 @load_sext_zext_anyext_i1_i16(ptr %a) {
%1 = load i1, ptr %a, align 1
%2 = zext i1 %1 to i16
ret i16 %2
}
Reproduce:
./exec_oracle.py --flags '-mtriple=riscv32 -verify-machineinstrs -mattr=+zfh -O1' --funcs load_sext_zext_anyext_i1_i16 snippet.ll
Local execution result:
62 of 64 inputs differ (first: #1)
SelectionDAG hash 935cf6666e2dee0e, GlobalISel hash ccbdc0f1543cc07f
b0: llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zfh -O1 -global-isel=0
b1: llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zfh -O0 -global-isel=0
b2: llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zfh -O1 -global-isel -global-isel-abort=2
Occurrences (2):
| Input | Function | Config |
|---|
| mem.8f2b3cb5.3a22d576.3abd03e7.6bb2fccc88.ll (mutant of mem.8f2b3cb5.3a22d576.3abd03e7.ll) | load_sext_zext_anyext_i1_i16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zicond,+zfhmin,+zvfh -O3 |
| mem.8f2b3cb5.3a22d576.53f0836d.a0b46eae27.ll (mutant of mem.8f2b3cb5.3a22d576.53f0836d.ll) | load_sext_zext_anyext_i1_i16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfh -O1 |
Generated 2026-11-29 14:49 UTC.