blob: 137ea5f0ff51d0164299909ef481a2f75b858c86 [file] [log] [blame]
Tim Northover40e9efd2013-08-01 09:20:35 +00001; RUN: llc -mtriple=aarch64-none-linux-gnu -mattr=-neon < %s
Tim Northoverdf723342014-05-07 10:47:04 +00002; RUN: llc -mtriple=arm64-none-linux-gnu -mattr=-neon < %s
Tim Northover40e9efd2013-08-01 09:20:35 +00003
4; The DAG combiner decided to use a vector load/store for this struct copy
5; previously. This probably shouldn't happen without NEON, but the most
6; important thing is that it compiles.
7
8define void @store_combine() nounwind {
9 %src = alloca { double, double }, align 8
10 %dst = alloca { double, double }, align 8
11
12 %src.realp = getelementptr inbounds { double, double }* %src, i32 0, i32 0
13 %src.real = load double* %src.realp
14 %src.imagp = getelementptr inbounds { double, double }* %src, i32 0, i32 1
15 %src.imag = load double* %src.imagp
16
17 %dst.realp = getelementptr inbounds { double, double }* %dst, i32 0, i32 0
18 %dst.imagp = getelementptr inbounds { double, double }* %dst, i32 0, i32 1
19 store double %src.real, double* %dst.realp
20 store double %src.imag, double* %dst.imagp
21 ret void
22}