Add missing newlines at EOF (for clang++).
[oota-llvm.git] / test / Transforms / InstCombine / load.ll
index 907550a778ae49a265b017da41d45ebd328c67fb..6d068f55dce68b862eb6703158f06dcb1a5a50c9 100644 (file)
@@ -1,6 +1,6 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep load
+; RUN: opt < %s -instcombine -S | not grep load
 
 @X = constant i32 42           ; <i32*> [#uses=2]
 @X2 = constant i32 47          ; <i32*> [#uses=1]
@@ -68,3 +68,11 @@ C:           ; preds = %F, %T
        %V = load i32* %P               ; <i32> [#uses=1]
        ret i32 %V
 }
+
+define double @test11(double* %p) {
+  %t0 = getelementptr double* %p, i32 1
+  store double 2.0, double* %t0
+  %t1 = getelementptr double* %p, i32 1
+  %x = load double* %t1
+  ret double %x
+}