From 4763249633cc7ed91218203c53182a811bec5cc8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 17 Jan 2003 19:45:49 +0000 Subject: [PATCH] Remove obsolete tests git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5361 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/exprtest.ll | 32 ---------------------------- test/globaldce.ll | 16 -------------- test/inductionvars.ll | 49 ------------------------------------------- test/inlinetest.ll | 27 ------------------------ 4 files changed, 124 deletions(-) delete mode 100644 test/exprtest.ll delete mode 100644 test/globaldce.ll delete mode 100644 test/inductionvars.ll delete mode 100644 test/inlinetest.ll diff --git a/test/exprtest.ll b/test/exprtest.ll deleted file mode 100644 index d7fb15c7039..00000000000 --- a/test/exprtest.ll +++ /dev/null @@ -1,32 +0,0 @@ -implementation -int "testExpressions"(int %N, int* %A) -begin - %N1 = add int %N, 12 - %N2 = mul int %N, 7 - %N3 = add int %N1, %N2 ;; Should equal 8*N+12 - %N4 = shl int %N3, ubyte 3 ;; Should equal 64*N + 96 - %N5 = mul int %N4, 0 ;; 0 - br label %1 - - %C = cast int 264 to ubyte ;; 8 - %C1 = add ubyte 252, %C ;; 4 - %C2 = cast ubyte %C1 to ulong ;; 4 - %C3 = add ulong 12345678901, %C2 ;; 12345678905 - %C4 = cast ulong %C3 to sbyte * ;; 12345678905 - br label %2 - - %A1 = cast int 4 to int * - %A2 = add int *%A, %A1 ;; %A+4 - %A3 = cast int 8 to int * - %A4 = add int *%A, %A3 ;; %A+8 - %X = sub int *%A4, %A2 ;; Should equal 4 - br label %3 - - %Z1 = cast int 400 to int * - %Z2 = cast sbyte 2 to int * - %Z3 = add int* %Z1, %Z2 - %Z4 = cast int* %Z3 to ubyte - - ret int %N4 -end - diff --git a/test/globaldce.ll b/test/globaldce.ll deleted file mode 100644 index 30eb8fc674a..00000000000 --- a/test/globaldce.ll +++ /dev/null @@ -1,16 +0,0 @@ -%var = internal global int 1234 ;; used by dead method - -implementation - -internal int "deadfunc"() { - %val = load int * %var - %val2 = call int %deadfunc() - %val3 = add int %val, %val2 - ret int %val3 -} - -int "main"(int %argc) ; TODO: , sbyte **argv, sbyte **envp) -begin - ret int -1 -end - diff --git a/test/inductionvars.ll b/test/inductionvars.ll deleted file mode 100644 index f280ddd83d0..00000000000 --- a/test/inductionvars.ll +++ /dev/null @@ -1,49 +0,0 @@ -implementation - -int "looptest"(int %i, int %j) -begin - %whichLoop = setlt int %i, %j - br bool %whichLoop, label %Loop1Header, label %Loop2Header - -Loop1Header: - %i1 = add int 0, 0 ; %i1 = 0 - br label %L1Top -L1Top: - %i2 = phi int [%i1, %Loop1Header], [%i3, %L1Body] - %L1Done = seteq int %i2, %j - br bool %L1Done, label %L1End, label %L1Body -L1Body: - %i3 = add int %i2, 2 - br label %L1Top -L1End: - %v0 = add int %i2, %j ; %v0 = 3 * %j - br label %Merge - -Loop2Header: - %m1 = add int 0, 0 - %k1 = add int 0, %i - br label %L2Top -L2Top: - %k2 = phi int [%k1, %Loop2Header], [%k3, %L2Body] - %m2 = phi int [%m1, %Loop2Header], [%m3, %L2Body] - %L2Done = seteq int %k2, 0 - br bool %L2Done, label %L2End, label %L2Body -L2Body: - %k3 = sub int %k2, 1 - %m3 = add int %m2, %j - br label %L2Top -L2End: - %v1 = add int %m2, %k2 - br label %Merge - -Merge: - %v2 = phi int [%v0, %L1End], [%v1, %L2End] - ret int %v2 -end - -int "main"() -begin - call int %looptest(int 0, int 12) - ret int %0 -end - diff --git a/test/inlinetest.ll b/test/inlinetest.ll deleted file mode 100644 index 7f1b1c3dd9d..00000000000 --- a/test/inlinetest.ll +++ /dev/null @@ -1,27 +0,0 @@ -implementation - -int "FuncToInline"() -begin - %x = add int 1, 1 ; Instrs can be const prop'd away - %y = sub int -1, 1 - %z = add int %x, %y - ret int %z ; Should equal %0 -end - -int "FuncToInlineInto"(int %arg) ; Instrs can be const prop'd away -begin - %x = add int %arg, 1 - %y = sub int 1, -1 - %p = call int %FuncToInline() - %z = add int %x, %y - %q = add int %p, %z - - ret int %q -end - -int "main"() -begin - %z = call int %FuncToInlineInto(int 1) - ret int %z -end - -- 2.34.1