Revert r188449 as it turns out we're just missing the instructions that need the...
[oota-llvm.git] / test / Transforms / ConstProp / 2005-01-28-SetCCGEP.ll
index ee1f251b83917ec544219259f74b642f08f8cfc7..d68cb26da348f943cdab736cbba97de0fdbc3b4f 100644 (file)
@@ -1,13 +1,10 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | \
-; RUN:    not grep {ret bool false}
+; RUN: opt < %s -constprop -S | \
+; RUN:    not grep "ret i1 false"
 
-%b = external global [2 x {  }] 
+@b = external global [2 x {  }]         ; <[2 x {  }]*> [#uses=2]
 
-implementation
-
-bool %f() {
-       ; tmp.2 -> true, not false.
-       %tmp.2 = seteq {  }* getelementptr ([2 x {  }]* %b, int 0, int 0), 
-                             getelementptr ([2 x {  }]* %b, int 0, int 1)
-       ret bool %tmp.2
+define i1 @f() {
+        %tmp.2 = icmp eq {  }* getelementptr ([2 x {  }]* @b, i32 0, i32 0), getelementptr ([2 x {  }]* @b, i32 0, i32 1)                ; <i1> [#uses=1]
+        ret i1 %tmp.2
 }
+