1 ; RUN: llc -mtriple=aarch64-none-linux-gnu -mattr=-neon < %s
2 ; RUN: llc -mtriple=arm64-none-linux-gnu -mattr=-neon < %s
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.
8 define void @store_combine() nounwind {
9 %src = alloca { double, double }, align 8
10 %dst = alloca { double, double }, align 8
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
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