InstCombine: Combine (add (and %a, %b) (or %a, %b)) to (add %a, %b)
[oota-llvm.git] / test / Transforms / InstCombine / 2002-03-11-InstCombineHang.ll
index dd683a3d99abc3e6812d6cc2f7f801b995c7419a..5d027a744920a048e64078617fc6a4a0af4ce2cb 100644 (file)
@@ -1,11 +1,9 @@
 ; This testcase causes instcombine to hang.
 ;
-; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine
+; RUN: opt < %s -instcombine
 
-implementation
+define void @test(i32 %X) {
+        %reg117 = add i32 %X, 0         ; <i32> [#uses=0]
+        ret void
+}
 
-void "test"(int %X)
-begin
-       %reg117 = add int %X, 0
-       ret void
-end