[llvm-commits] [llvm] r39963 - in /llvm/trunk/test: C++Frontend/ CFrontend/ CodeGen/Generic/ DebugInfo/
Reid Spencer
rspencer at reidspencer.com
Tue Jul 17 09:51:36 PDT 2007
On Tue, 2007-07-17 at 09:26 -0700, Tanya Lattner wrote:
> Is this move really necessary? We should really keep test cases that
> are for DebugInfo/CodeGen in the appropriate directory even thought
> they may be C/C++ files.
See my post to PR1558
Reid.
>
> -Tanya
>
> On Jul 16, 2007, at 11:20 PM, Reid Spencer wrote:
>
> > Author: reid
> > Date: Tue Jul 17 01:20:38 2007
> > New Revision: 39963
> >
> > URL: http://llvm.org/viewvc/llvm-project?rev=39963&view=rev
> > Log:
> > For PR1558:
> > Move tests that have C/C++ sources into the appropriate directory.
> > This
> > allows them to be selected for testing based on whether llvm-gcc is
> > present or not.
> >
> > Added:
> > llvm/trunk/test/C++Frontend/2006-11-06-StackTrace.cpp
> > - copied unchanged from r39932, llvm/trunk/test/DebugInfo/
> > 2006-11-06-StackTrace.cpp
> > llvm/trunk/test/C++Frontend/2006-11-20-GlobalSymbols.cpp
> > - copied unchanged from r39932, llvm/trunk/test/DebugInfo/
> > 2006-11-20-GlobalSymbols.cpp
> > llvm/trunk/test/C++Frontend/2006-11-30-NoCompileUnit.cpp
> > - copied unchanged from r39932, llvm/trunk/test/DebugInfo/
> > 2006-11-30-NoCompileUnit.cpp
> > llvm/trunk/test/C++Frontend/2006-11-30-Pubnames.cpp
> > - copied unchanged from r39932, llvm/trunk/test/DebugInfo/
> > 2006-11-30-Pubnames.cpp
> > llvm/trunk/test/C++Frontend/2007-01-02-UnboundedArray.cpp
> > - copied unchanged from r39932, llvm/trunk/test/DebugInfo/
> > 2007-01-02-UnboundedArray.cpp
> > llvm/trunk/test/CFrontend/BasicInstrs.c
> > - copied unchanged from r39930, llvm/trunk/test/CodeGen/
> > Generic/BasicInstrs.c
> > llvm/trunk/test/CFrontend/funccall.c
> > - copied unchanged from r39932, llvm/trunk/test/DebugInfo/
> > funccall.c
> > Removed:
> > llvm/trunk/test/CodeGen/Generic/BasicInstrs.c
> > llvm/trunk/test/DebugInfo/2006-11-06-StackTrace.cpp
> > llvm/trunk/test/DebugInfo/2006-11-20-GlobalSymbols.cpp
> > llvm/trunk/test/DebugInfo/2006-11-30-NoCompileUnit.cpp
> > llvm/trunk/test/DebugInfo/2006-11-30-Pubnames.cpp
> > llvm/trunk/test/DebugInfo/2007-01-02-UnboundedArray.cpp
> > llvm/trunk/test/DebugInfo/funccall.c
> >
> > Removed: llvm/trunk/test/CodeGen/Generic/BasicInstrs.c
> > URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/
> > Generic/BasicInstrs.c?rev=39962&view=auto
> >
> > ======================================================================
> > ========
> > --- llvm/trunk/test/CodeGen/Generic/BasicInstrs.c (original)
> > +++ llvm/trunk/test/CodeGen/Generic/BasicInstrs.c (removed)
> > @@ -1,26 +0,0 @@
> > -// This file can be used to see what a native C compiler is
> > generating for a
> > -// variety of interesting operations.
> > -//
> > -// RUN: %llvmgcc -S %s -o - | llvm-as | llc
> > -
> > -unsigned int udiv(unsigned int X, unsigned int Y) {
> > - return X/Y;
> > -}
> > -int sdiv(int X, int Y) {
> > - return X/Y;
> > -}
> > -unsigned int urem(unsigned int X, unsigned int Y) {
> > - return X%Y;
> > -}
> > -int srem(int X, int Y) {
> > - return X%Y;
> > -}
> > -
> > -_Bool setlt(int X, int Y) {
> > - return X < Y;
> > -}
> > -
> > -_Bool setgt(int X, int Y) {
> > - return X > Y;
> > -}
> > -
> >
> > Removed: llvm/trunk/test/DebugInfo/2006-11-06-StackTrace.cpp
> > URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/
> > 2006-11-06-StackTrace.cpp?rev=39962&view=auto
> >
> > ======================================================================
> > ========
> > --- llvm/trunk/test/DebugInfo/2006-11-06-StackTrace.cpp (original)
> > +++ llvm/trunk/test/DebugInfo/2006-11-06-StackTrace.cpp (removed)
> > @@ -1,36 +0,0 @@
> > -// This is a regression test on debug info to make sure that we
> > can get a
> > -// meaningful stack trace from a C++ program.
> > -// RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | llc --disable-fp-
> > elim -o %t.s -f
> > -// RUN: as %t.s -o %t.o
> > -// RUN: %link %t.o -o %t.exe
> > -// RUN: echo {break DeepStack::deepest\nrun 17\nwhere\n} > %t.in
> > -// RUN: gdb -q -batch -n -x %t.in %t.exe | tee %t.out | \
> > -// RUN: grep {#0 DeepStack::deepest.*(this=.*,.*x=33)}
> > -// RUN: gdb -q -batch -n -x %t.in %t.exe | \
> > -// RUN: grep {#7 0x.* in main.*(argc=\[12\],.*argv=.*)}
> > -
> > -// Only works on ppc. Should generalize?
> > -// XFAIL: i[1-9]86|alpha|ia64|arm|x86_64|amd64
> > -
> > -#include <stdlib.h>
> > -
> > -class DeepStack {
> > - int seedVal;
> > -public:
> > - DeepStack(int seed) : seedVal(seed) {}
> > -
> > - int shallowest( int x ) { return shallower(x + 1); }
> > - int shallower ( int x ) { return shallow(x + 2); }
> > - int shallow ( int x ) { return deep(x + 3); }
> > - int deep ( int x ) { return deeper(x + 4); }
> > - int deeper ( int x ) { return deepest(x + 6); }
> > - int deepest ( int x ) { return x + 7; }
> > -
> > - int runit() { return shallowest(seedVal); }
> > -};
> > -
> > -int main ( int argc, char** argv) {
> > -
> > - DeepStack DS9( (argc > 1 ? atoi(argv[1]) : 0) );
> > - return DS9.runit();
> > -}
> >
> > Removed: llvm/trunk/test/DebugInfo/2006-11-20-GlobalSymbols.cpp
> > URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/
> > 2006-11-20-GlobalSymbols.cpp?rev=39962&view=auto
> >
> > ======================================================================
> > ========
> > --- llvm/trunk/test/DebugInfo/2006-11-20-GlobalSymbols.cpp (original)
> > +++ llvm/trunk/test/DebugInfo/2006-11-20-GlobalSymbols.cpp (removed)
> > @@ -1,10 +0,0 @@
> > -// PR1013
> > -// Check to make sure debug symbols use the correct name for
> > globals and
> > -// functions. Will not assemble if it fails to.
> > -// RUN: %llvmgcc -O0 -g -c %s
> > -
> > -int foo __asm__("f\001oo");
> > -
> > -int bar() {
> > - return foo;
> > -}
> >
> > Removed: llvm/trunk/test/DebugInfo/2006-11-30-NoCompileUnit.cpp
> > URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/
> > 2006-11-30-NoCompileUnit.cpp?rev=39962&view=auto
> >
> > ======================================================================
> > ========
> > --- llvm/trunk/test/DebugInfo/2006-11-30-NoCompileUnit.cpp (original)
> > +++ llvm/trunk/test/DebugInfo/2006-11-30-NoCompileUnit.cpp (removed)
> > @@ -1,58 +0,0 @@
> > -// This is a regression test on debug info to make sure we don't
> > hit a compile
> > -// unit size issue with gdb.
> > -// RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | \
> > -// RUN: llc --disable-fp-elim -o Output/NoCompileUnit.s -f
> > -// RUN: as Output/NoCompileUnit.s -o Output/NoCompileUnit.o
> > -// RUN: g++ Output/NoCompileUnit.o -o Output/NoCompileUnit.exe
> > -// RUN: echo {break main\nrun\np NoCompileUnit::pubname} > %t2
> > -// RUN: gdb -q -batch -n -x %t2 Output/NoCompileUnit.exe | \
> > -// RUN: tee Output/NoCompileUnit.out | not grep {"low == high"}
> > -// XFAIL: alpha|ia64|arm
> > -
> > -
> > -class MamaDebugTest {
> > -private:
> > - int N;
> > -
> > -protected:
> > - MamaDebugTest(int n) : N(n) {}
> > -
> > - int getN() const { return N; }
> > -
> > -};
> > -
> > -class BabyDebugTest : public MamaDebugTest {
> > -private:
> > -
> > -public:
> > - BabyDebugTest(int n) : MamaDebugTest(n) {}
> > -
> > - static int doh;
> > -
> > - int doit() {
> > - int N = getN();
> > - int Table[N];
> > -
> > - int sum = 0;
> > -
> > - for (int i = 0; i < N; ++i) {
> > - int j = i;
> > - Table[i] = j;
> > - }
> > - for (int i = 0; i < N; ++i) {
> > - int j = Table[i];
> > - sum += j;
> > - }
> > -
> > - return sum;
> > - }
> > -
> > -};
> > -
> > -int BabyDebugTest::doh;
> > -
> > -
> > -int main(int argc, const char *argv[]) {
> > - BabyDebugTest BDT(20);
> > - return BDT.doit();
> > -}
> >
> > Removed: llvm/trunk/test/DebugInfo/2006-11-30-Pubnames.cpp
> > URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/
> > 2006-11-30-Pubnames.cpp?rev=39962&view=auto
> >
> > ======================================================================
> > ========
> > --- llvm/trunk/test/DebugInfo/2006-11-30-Pubnames.cpp (original)
> > +++ llvm/trunk/test/DebugInfo/2006-11-30-Pubnames.cpp (removed)
> > @@ -1,20 +0,0 @@
> > -// This is a regression test on debug info to make sure that we
> > can access
> > -// qualified global names.
> > -// RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | \
> > -// RUN: llc --disable-fp-elim -o %t.s -f
> > -// RUN: as %t.s -o %t.o
> > -// RUN: %link %t.o -o %t.exe
> > -// RUN: echo {break main\nrun\np Pubnames::pubname} > %t.in
> > -// RUN: gdb -q -batch -n -x %t.in %t.exe | tee %t.out | grep {\$1
> > = 10}
> > -// XFAIL: alpha|ia64|arm
> > -
> > -struct Pubnames {
> > - static int pubname;
> > -};
> > -
> > -int Pubnames::pubname = 10;
> > -
> > -int main (int argc, char** argv) {
> > - Pubnames p;
> > - return 0;
> > -}
> >
> > Removed: llvm/trunk/test/DebugInfo/2007-01-02-UnboundedArray.cpp
> > URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/
> > 2007-01-02-UnboundedArray.cpp?rev=39962&view=auto
> >
> > ======================================================================
> > ========
> > --- llvm/trunk/test/DebugInfo/2007-01-02-UnboundedArray.cpp (original)
> > +++ llvm/trunk/test/DebugInfo/2007-01-02-UnboundedArray.cpp (removed)
> > @@ -1,14 +0,0 @@
> > -// Make sure unbounded arrays compile with debug information.
> > -//
> > -// RUN: %llvmgcc -O0 -c -g %s
> > -
> > -// PR1068
> > -
> > -struct Object {
> > - char buffer[];
> > -};
> > -
> > -int main(int argc, char** argv) {
> > - new Object;
> > - return 0;
> > -}
> >
> > Removed: llvm/trunk/test/DebugInfo/funccall.c
> > URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/
> > funccall.c?rev=39962&view=auto
> >
> > ======================================================================
> > ========
> > --- llvm/trunk/test/DebugInfo/funccall.c (original)
> > +++ llvm/trunk/test/DebugInfo/funccall.c (removed)
> > @@ -1,17 +0,0 @@
> > -
> > -static int q;
> > -
> > -void foo() {
> > - int t = q;
> > - q = t + 1;
> > -}
> > -int main() {
> > - q = 0;
> > - foo();
> > - q = q - 1;
> > -
> > - return q;
> > -}
> > -
> > -// This is the source that corresponds to funccall.ll
> > -// RUN: echo foo
> >
> >
> > _______________________________________________
> > llvm-commits mailing list
> > llvm-commits at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list