modernize and clean up this test.
authorChris Lattner <sabre@nondot.org>
Fri, 7 Jan 2005 21:15:58 +0000 (21:15 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 7 Jan 2005 21:15:58 +0000 (21:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19347 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/Generic/fwdtwice.ll

index 5aa8b724c736d05e784fabffc3eda8c4ddf0b290..ecbe5fc3d8c80531cb0815ff86cd7de7ef8d6fc0 100644 (file)
 ;; This came from %bb1 of sumarrray.ll generated from sumarray.c.
 
 
-;;;; ******************************************************
-implementation
-;;;; ******************************************************
-
-int "SumArray"(int %Num)
-begin
-bb0:                                    ;[#uses=3]
+int %SumArray(int %Num) {
+        %Num = alloca int
         br label %Top
 Top:
-        %Num = alloca int               ; <int *> [#uses=2]
         store int %Num, int * %Num
-        %reg108 = load int * %Num               ; <int> [#uses=2]
-        %cast1006 = cast int %reg108 to uint            ; <uint> [#uses=1]
-        %cond1001 = setle uint %cast1006, 0             ; <bool> [#uses=1]
+        %reg108 = load int * %Num
+        %cast1006 = cast int %reg108 to uint
+        %cond1001 = setle uint %cast1006, 0
        br bool %cond1001, label %bb6, label %Top
 
 bb6:
        ret int 42
-end
-
+}