blob: b7c7043360234450cc1c0830371fd094a9331d88 [file] [log] [blame]
Tim Northover3b0846e2014-05-24 12:50:23 +00001; RUN: llc -mtriple=aarch64-none-linux-gnu -mattr=-neon < %s
Tim Northover40e9efd2013-08-01 09:20:35 +00002
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
David Blaikie79e6c742015-02-27 19:29:02 +000011 %src.realp = getelementptr inbounds { double, double }, { double, double }* %src, i32 0, i32 0
David Blaikiea79ac142015-02-27 21:17:42 +000012 %src.real = load double, double* %src.realp
David Blaikie79e6c742015-02-27 19:29:02 +000013 %src.imagp = getelementptr inbounds { double, double }, { double, double }* %src, i32 0, i32 1
David Blaikiea79ac142015-02-27 21:17:42 +000014 %src.imag = load double, double* %src.imagp
Tim Northover40e9efd2013-08-01 09:20:35 +000015
David Blaikie79e6c742015-02-27 19:29:02 +000016 %dst.realp = getelementptr inbounds { double, double }, { double, double }* %dst, i32 0, i32 0
17 %dst.imagp = getelementptr inbounds { double, double }, { double, double }* %dst, i32 0, i32 1
Tim Northover40e9efd2013-08-01 09:20:35 +000018 store double %src.real, double* %dst.realp
19 store double %src.imag, double* %dst.imagp
20 ret void
21}