Add correct NEON encodings for the "multiple single elements" form of vld.
[oota-llvm.git] / test / Transforms / ScalarRepl / sroa-fca.ll
index a7ec3a11d738d9551a0ceaaea066447743434386..2df3b9be1e4821c0e20e4fde6d57a073e8e5316d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -scalarrepl | llvm-dis
+; RUN: opt < %s -scalarrepl | llvm-dis
 ; Make sure that SROA "scalar conversion" can handle first class aggregates.
 
 define i64 @test({i32, i32} %A) {
@@ -10,3 +10,12 @@ define i64 @test({i32, i32} %A) {
        ret i64 %Q
 }
 
+define {i32,i32} @test2(i64 %A) {
+       %X = alloca i64
+       %Y = bitcast i64* %X to {i32,i32}*
+       store i64 %A, i64* %X
+       
+       %Q = load {i32,i32}* %Y
+       ret {i32,i32} %Q
+}
+