xref: /llvm-project/llvm/test/CodeGen/AArch64/complex-copy-noneon.ll (revision 5ddce70ef0e5a641d7fea95e31fc5e2439cb98cb)
1; RUN: llc -mtriple=aarch64-none-linux-gnu -mattr=-neon < %s
2
3; The DAG combiner decided to use a vector load/store for this struct copy
4; previously. This probably shouldn't happen without NEON, but the most
5; important thing is that it compiles.
6
7define void @store_combine() nounwind {
8  %src = alloca { double, double }, align 8
9  %dst = alloca { double, double }, align 8
10
11  %src.realp = getelementptr inbounds { double, double }, ptr %src, i32 0, i32 0
12  %src.real = load double, ptr %src.realp
13  %src.imagp = getelementptr inbounds { double, double }, ptr %src, i32 0, i32 1
14  %src.imag = load double, ptr %src.imagp
15
16  %dst.realp = getelementptr inbounds { double, double }, ptr %dst, i32 0, i32 0
17  %dst.imagp = getelementptr inbounds { double, double }, ptr %dst, i32 0, i32 1
18  store double %src.real, ptr %dst.realp
19  store double %src.imag, ptr %dst.imagp
20  ret void
21}
22