miscompile: miscompile rv64: add,addi,feq.s,fld,flw,fmv.d.x
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | miscompile |
| Category: | miscompile rv64: add,addi,feq.s,fld,flw,fmv.d.x M |
| Occurrences: | 1 in 1 configs, 1 test files |
| Snippet from: | fixed-vectors-extract-i1.7a96e8ee.ec6bff38.ef7cddee.590db7d4.cbe20c91ba.ll (mutant of fixed-vectors-extract-i1.7a96e8ee.ec6bff38.ef7cddee.590db7d4.ll) @extractelt_v1i1 via llvm-extract |
| Config: | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+f -O1 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not applicable: Compiler Explorer compiles RISC-V but cannot run it |
Snippet:
@G.3 = external global ptr
@G.4 = external global i1
@G.6 = external global float
@G.7 = external global i64
; Function Attrs: nounwind
define i1 @extractelt_v1i1(ptr %x, i64 %idx) #0 {
%G = getelementptr i16, ptr %x, i1 false
%L4 = load i64, ptr %G, align 4
%B5 = xor i64 %idx, %L4
%A = alloca ptr, align 8
store ptr poison, ptr %A, align 8
%G6 = getelementptr <1 x i1>, ptr %x, i64 %idx
%G3 = getelementptr ptr, ptr %x, i16 42
%L3 = load float, ptr %G, align 4
%a = load <1 x i8>, ptr %x, align 1
%L2 = load double, ptr %G, align 8
%L1 = load float, ptr %G, align 4
%B = fsub double 1.000000e+00, %L2
%G9 = getelementptr ptr, ptr %A, i64 %idx
%b = icmp eq <1 x i8> %a, zeroinitializer
%C = fcmp oeq float %L1, %L3
%c = extractelement <1 x i1> %b, i64 %idx
%L = load i8, ptr %G, align 1
%LGV7 = load float, ptr @G.6, align 4
%G1 = getelementptr i1, ptr %x, i8 %L
store ptr %G3, ptr %G1, align 8
%G4 = getelementptr ptr, ptr %x, i64 %idx
store ptr %G6, ptr %G1, align 8
store ptr %G4, ptr %G, align 8
store double %B, ptr %G1, align 8
store i1 %C, ptr %G1, align 1
store ptr %G, ptr @G.3, align 8
%C8 = fcmp false float %L1, %LGV7
store i1 %C8, ptr @G.4, align 1
store ptr %G1, ptr %A, align 8
store ptr %G9, ptr @G.3, align 8
store i64 %B5, ptr @G.7, align 4
ret i1 %c
}
attributes #0 = { nounwind }
Reproduce:
./exec_oracle.py --flags '-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+f -O1' --funcs extractelt_v1i1 snippet.ll
Local execution result:
2 of 64 inputs differ (first: #0)
SelectionDAG hash 902b59934f7b5f1a, GlobalISel hash 4722147f513e638f
b0: llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+f -O1 -global-isel=0
b1: llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+f -O0 -global-isel=0
b2: llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+f -O1 -global-isel -global-isel-abort=2
Occurrences (1):
| Input | Function | Config |
|---|
| fixed-vectors-extract-i1.7a96e8ee.ec6bff38.ef7cddee.590db7d4.cbe20c91ba.ll (mutant of fixed-vectors-extract-i1.7a96e8ee.ec6bff38.ef7cddee.590db7d4.ll) | extractelt_v1i1 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+f -O1 |
Generated 2026-11-29 14:49 UTC.