miscompile: miscompile rv32: add,andi,slli,srai,sub
| Run: | main-d9924131a4-20261128-102057 |
| Kind: | miscompile |
| Category: | miscompile rv32: add,andi,slli,srai,sub |
| Occurrences: | 2 in 1 configs, 1 test files |
| Snippet from: | mem.ll @load_sext_zext_anyext_i1 via llvm-extract + llvm-reduce |
| Config: | -mtriple=riscv32 -verify-machineinstrs |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not applicable: Compiler Explorer compiles RISC-V but cannot run it |
Snippet:
define i32 @load_sext_zext_anyext_i1(ptr %a) {
%1 = load i1, ptr %a, align 1
%2 = zext i1 %1 to i32
ret i32 %2
}
Reproduce:
./exec_oracle.py --flags '-mtriple=riscv32 -verify-machineinstrs' --funcs load_sext_zext_anyext_i1 snippet.ll
Local execution result:
62 of 64 inputs differ (first: #1)
SelectionDAG hash 935cf6666e2dee0e, GlobalISel hash ccbdc0f1543cc07f
b0: llc -mtriple=riscv32 -verify-machineinstrs -O2 -global-isel=0
b1: llc -mtriple=riscv32 -verify-machineinstrs -O0 -global-isel=0
b2: llc -mtriple=riscv32 -verify-machineinstrs -O2 -global-isel -global-isel-abort=2
Occurrences (2):
| Input | Function | Config |
|---|
| mem.ll | load_sext_zext_anyext_i1 | -mtriple=riscv32 -verify-machineinstrs |
| mem.ll | load_sext_zext_anyext_i1_i16 | -mtriple=riscv32 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.