From 4797826e17d77e2f2aec2695ec3618ca237c463b Mon Sep 17 00:00:00 2001 From: John Criswell Date: Fri, 3 Oct 2003 18:42:25 +0000 Subject: [PATCH] Changed all of these tests to be TestRunner tests (or, at least they can be TestRunner tests). This makes creating the new test database class easier to implement. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8841 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/DSAnalysis/arraymerge.ll | 2 ++ test/Transforms/DSAnalysis/arraytest.ll | 3 ++- test/Transforms/DSAnalysis/badcases.ll | 2 ++ test/Transforms/DSAnalysis/basictest.ll | 3 ++- test/Transforms/DSAnalysis/fieldmerge.ll | 2 ++ test/Transforms/DSAnalysis/goodcases.ll | 2 ++ test/Transforms/DSAnalysis/indcalltest.ll | 3 +++ test/Transforms/DSAnalysis/misctests.ll | 3 ++- test/Transforms/DSAnalysis/physicalsubtype.ll | 2 ++ test/Transforms/DSAnalysis/recursion.ll | 2 ++ test/Transforms/DSAnalysis/simplest-test.ll | 2 +- test/Transforms/DSAnalysis/simpletest.ll | 1 + test/Transforms/DSAnalysis/structpadding.ll | 1 + 13 files changed, 24 insertions(+), 4 deletions(-) diff --git a/test/Transforms/DSAnalysis/arraymerge.ll b/test/Transforms/DSAnalysis/arraymerge.ll index 2d0a577bc40..c4ac718c1c2 100644 --- a/test/Transforms/DSAnalysis/arraymerge.ll +++ b/test/Transforms/DSAnalysis/arraymerge.ll @@ -2,6 +2,8 @@ ; folded completely away if possible. This is a very common case, so it should ; be efficient. ; +; RUN: analyze %s -tddatastructure +; implementation sbyte* %merge1([100 x sbyte] *%A, long %N) { diff --git a/test/Transforms/DSAnalysis/arraytest.ll b/test/Transforms/DSAnalysis/arraytest.ll index 164eb744f39..521bd630e35 100644 --- a/test/Transforms/DSAnalysis/arraytest.ll +++ b/test/Transforms/DSAnalysis/arraytest.ll @@ -1,4 +1,5 @@ - +; +; RUN: analyze %s -tddatastructure %crazy = type [2 x { [2 x sbyte], short } ] implementation diff --git a/test/Transforms/DSAnalysis/badcases.ll b/test/Transforms/DSAnalysis/badcases.ll index 16284529dce..b841b6e8d85 100644 --- a/test/Transforms/DSAnalysis/badcases.ll +++ b/test/Transforms/DSAnalysis/badcases.ll @@ -1,4 +1,6 @@ ; This file contains a list of situations where node folding should happen... +; +; RUN: analyze %s -tddatastructure implementation diff --git a/test/Transforms/DSAnalysis/basictest.ll b/test/Transforms/DSAnalysis/basictest.ll index 407d4953758..615e0219cf1 100644 --- a/test/Transforms/DSAnalysis/basictest.ll +++ b/test/Transforms/DSAnalysis/basictest.ll @@ -1,5 +1,6 @@ - ; very simple test +; +; RUN: analyze %s -tddatastructure implementation diff --git a/test/Transforms/DSAnalysis/fieldmerge.ll b/test/Transforms/DSAnalysis/fieldmerge.ll index 59c1ea5f071..4dcefb7f3b4 100644 --- a/test/Transforms/DSAnalysis/fieldmerge.ll +++ b/test/Transforms/DSAnalysis/fieldmerge.ll @@ -1,3 +1,5 @@ +; +; RUN: analyze %s -tddatastructure %str = type { int*, int* } diff --git a/test/Transforms/DSAnalysis/goodcases.ll b/test/Transforms/DSAnalysis/goodcases.ll index 6d1fe629dc0..1d545b3965e 100644 --- a/test/Transforms/DSAnalysis/goodcases.ll +++ b/test/Transforms/DSAnalysis/goodcases.ll @@ -1,5 +1,7 @@ ; This file contains a list of cases where node folding should NOT happen ; +; RUN: analyze %s -tddatastructure +; implementation diff --git a/test/Transforms/DSAnalysis/indcalltest.ll b/test/Transforms/DSAnalysis/indcalltest.ll index a45c3b9a12a..16cb6bea18f 100644 --- a/test/Transforms/DSAnalysis/indcalltest.ll +++ b/test/Transforms/DSAnalysis/indcalltest.ll @@ -1,3 +1,6 @@ +; +; RUN: analyze %s -tddatastructure + %G = global int 2 ; [#uses=1] %H = global int* null diff --git a/test/Transforms/DSAnalysis/misctests.ll b/test/Transforms/DSAnalysis/misctests.ll index 4c692b41f7f..29c7079ac53 100644 --- a/test/Transforms/DSAnalysis/misctests.ll +++ b/test/Transforms/DSAnalysis/misctests.ll @@ -1,4 +1,5 @@ - +; +; RUN: analyze %s -tddatastructure int* %test1(int *%A) { %R = getelementptr int* %A, long 1 diff --git a/test/Transforms/DSAnalysis/physicalsubtype.ll b/test/Transforms/DSAnalysis/physicalsubtype.ll index cdda0d5ec05..2beb3eca6bc 100644 --- a/test/Transforms/DSAnalysis/physicalsubtype.ll +++ b/test/Transforms/DSAnalysis/physicalsubtype.ll @@ -1,5 +1,7 @@ ; A test for "physical subtyping" used in some C programs... ; +; RUN: analyze %s -tddatastructure +; %ST = type { int, int* } ; "Subtype" %DT = type { int, int*, int } ; "derived type" diff --git a/test/Transforms/DSAnalysis/recursion.ll b/test/Transforms/DSAnalysis/recursion.ll index 669b0a4e1b7..6acdd24853a 100644 --- a/test/Transforms/DSAnalysis/recursion.ll +++ b/test/Transforms/DSAnalysis/recursion.ll @@ -1,3 +1,5 @@ +; RUN: analyze %s -tddatastructure + implementation ; Functions: declare void %__main() diff --git a/test/Transforms/DSAnalysis/simplest-test.ll b/test/Transforms/DSAnalysis/simplest-test.ll index 1a1bcc2f593..b7574039664 100644 --- a/test/Transforms/DSAnalysis/simplest-test.ll +++ b/test/Transforms/DSAnalysis/simplest-test.ll @@ -1,4 +1,4 @@ - +; RUN: analyze %s -tddatastructure void %foo(int* %X) { store int 4, int* %X diff --git a/test/Transforms/DSAnalysis/simpletest.ll b/test/Transforms/DSAnalysis/simpletest.ll index f600136db87..298aa836710 100644 --- a/test/Transforms/DSAnalysis/simpletest.ll +++ b/test/Transforms/DSAnalysis/simpletest.ll @@ -1,3 +1,4 @@ +; RUN: analyze %s -tddatastructure implementation diff --git a/test/Transforms/DSAnalysis/structpadding.ll b/test/Transforms/DSAnalysis/structpadding.ll index 52a124a054d..693c9888b98 100644 --- a/test/Transforms/DSAnalysis/structpadding.ll +++ b/test/Transforms/DSAnalysis/structpadding.ll @@ -1,3 +1,4 @@ +; RUN: analyze %s -tddatastructure %str = type { int, int* } -- 2.34.1