miscompile: miscompile rv64: add,andi,andn,lbu,sb,slli
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | miscompile |
| Category: | miscompile rv64: add,andi,andn,lbu,sb,slli NEW M |
| Occurrences: | 1 in 1 configs, 1 test files |
| Snippet from: | mem64.851f711b.27f12a4830.ll (mutant of mem64.851f711b.ll) @load_sext_zext_anyext_i1 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb -O1 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not applicable: Compiler Explorer compiles RISC-V but cannot run it |
Snippet:
@G.1 = external global i1
; Function Attrs: nounwind
define dso_local i64 @load_sext_zext_anyext_i1(ptr %a) #0 {
%1 = getelementptr i1, ptr %a, i32 2
%2 = getelementptr i1, ptr %a, i32 1
%3 = load i1, ptr %2, align 1
%4 = load i1, ptr %1, align 1
%5 = load volatile i1, ptr %a, align 1
%6 = zext i1 %4 to i64
%C = icmp sgt i1 %4, %5
%7 = sext i1 %3 to i64
store i1 %C, ptr @G.1, align 1
%8 = add i64 %7, %6
ret i64 %8
}
attributes #0 = { nounwind }
Reproduce:
./exec_oracle.py --flags '-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb -O1' --funcs load_sext_zext_anyext_i1 snippet.ll
Local execution result:
32 of 64 inputs differ (first: #0)
SelectionDAG hash f8b9494ba981e5fb, GlobalISel hash d49d8e17f8dbcd7c
b0: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb -O1 -global-isel=0
b1: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb -O0 -global-isel=0
b2: llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb -O1 -global-isel -global-isel-abort=2
Occurrences (1):
| Input | Function | Config |
|---|
| mem64.851f711b.27f12a4830.ll (mutant of mem64.851f711b.ll) | load_sext_zext_anyext_i1 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb -O1 |
Generated 2026-11-29 14:49 UTC.