miscompile: miscompile rv64: addi,and,andi,bnez,j,lbu
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | miscompile |
| Category: | miscompile rv64: addi,and,andi,bnez,j,lbu M |
| Occurrences: | 2 in 2 configs, 1 test files |
| Snippet from: | fixed-vectors-vror.32cb11e9.8648ae65.f7f19e8964.ll (mutant of fixed-vectors-vror.32cb11e9.8648ae65.ll) @vror_vx_v1i16 via llvm-extract + llvm-reduce |
| Config: | -mtriple=riscv64 -verify-machineinstrs -O2 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not applicable: Compiler Explorer compiles RISC-V but cannot run it |
Snippet:
define <1 x i16> @vror_vx_v1i16(<1 x i16> %a) {
F:
%x = call <1 x i16> @llvm.fshr.v1i16(<1 x i16> splat (i16 1), <1 x i16> splat (i16 1), <1 x i16> %a)
ret <1 x i16> %x
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <1 x i16> @llvm.fshr.v1i16(<1 x i16>, <1 x i16>, <1 x i16>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
./exec_oracle.py --flags '-mtriple=riscv64 -verify-machineinstrs -O2' --funcs vror_vx_v1i16 snippet.ll
Local execution result:
32 of 64 inputs differ (first: #1)
SelectionDAG hash e80159fb23549387, GlobalISel hash af128ffdc8c5bcf0
b0: llc -mtriple=riscv64 -verify-machineinstrs -O2 -global-isel=0
b1: llc -mtriple=riscv64 -verify-machineinstrs -O0 -global-isel=0
b2: llc -mtriple=riscv64 -verify-machineinstrs -O2 -global-isel -global-isel-abort=2
Occurrences (2):
| Input | Function | Config |
|---|
| fixed-vectors-vror.32cb11e9.8648ae65.9980718f97.ll (mutant of fixed-vectors-vror.32cb11e9.8648ae65.ll) | vror_vx_v1i16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zfhmin -O2 |
| fixed-vectors-vror.32cb11e9.8648ae65.f7f19e8964.ll (mutant of fixed-vectors-vror.32cb11e9.8648ae65.ll) | vror_vx_v1i16 | -mtriple=riscv64 -verify-machineinstrs -O2 |
Generated 2026-11-29 14:49 UTC.