From 3b5d631747c3dc6f42295daf55c2dd5e0cb6ad82 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 7 Jan 2005 21:15:58 +0000 Subject: [PATCH] modernize and clean up this test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19347 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/Generic/fwdtwice.ll | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/test/CodeGen/Generic/fwdtwice.ll b/test/CodeGen/Generic/fwdtwice.ll index 5aa8b724c73..ecbe5fc3d8c 100644 --- a/test/CodeGen/Generic/fwdtwice.ll +++ b/test/CodeGen/Generic/fwdtwice.ll @@ -13,23 +13,16 @@ ;; 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 ; [#uses=2] store int %Num, int * %Num - %reg108 = load int * %Num ; [#uses=2] - %cast1006 = cast int %reg108 to uint ; [#uses=1] - %cond1001 = setle uint %cast1006, 0 ; [#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 - +} -- 2.34.1