Fix a test.
These other tests should be in test/Programs/SingleSource/UnitTests if anyone
cares enough to save them


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17540 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/Generic/BasicInstrs.c b/test/CodeGen/Generic/BasicInstrs.c
index 30cc890..9a378b9 100644
--- a/test/CodeGen/Generic/BasicInstrs.c
+++ b/test/CodeGen/Generic/BasicInstrs.c
@@ -1,7 +1,8 @@
 // This file can be used to see what a native C compiler is generating for a 
 // variety of interesting operations.
 //
-// RUN: $LLVMGCCDIR/bin/gcc -c %s 
+// RUN: %llvmgcc -c %s -o - | llc
+
 unsigned int udiv(unsigned int X, unsigned int Y) {
   return X/Y;
 }
diff --git a/test/CodeGen/Generic/branch.c b/test/CodeGen/Generic/branch.c
deleted file mode 100644
index d54a771..0000000
--- a/test/CodeGen/Generic/branch.c
+++ /dev/null
@@ -1,15 +0,0 @@
-#include <stdio.h>
-int a = 1, b = 2;
-
-int main() {
-  int i,j;
-  for (i=15; i>=0; --i) {
-    if (a < i) printf("%d < %d\n", a, i);
-    else printf("%d >= %d\n", a, i);
-    for (j=2; j <= 25; j++) {
-      printf("%d, ", j);
-    }
-    printf("\n");
-  }
-  return 0; 
-}
diff --git a/test/CodeGen/Generic/print-vals.c b/test/CodeGen/Generic/print-vals.c
deleted file mode 100644
index 452bcaf..0000000
--- a/test/CodeGen/Generic/print-vals.c
+++ /dev/null
@@ -1,7 +0,0 @@
-void printf(char*, ...);
-
-int main() {
-  printf("%f, %d, %f, %d, %f\n", //, %d, %f, %d, %f, %d\n", 
-          1.0, 2, 3.0, 4, 5.0 /*, 6, 7.0, 8, 9.0, 10*/);
-  return 0;
-}
diff --git a/test/CodeGen/Generic/struct.c b/test/CodeGen/Generic/struct.c
deleted file mode 100644
index c4181bc..0000000
--- a/test/CodeGen/Generic/struct.c
+++ /dev/null
@@ -1,39 +0,0 @@
-void printf(char*, ...);
-
-typedef struct params_ {
-  int     i1;
-  float   f1;
-  double  d1;
-  short   s1;
-  double  d2;
-  char    c1;
-  unsigned short  s2;
-  float   f2;
-  int     i2;
-} params;
-
-void print_param(params p) {
-  printf("%d,   %f,   %f,   %d,   %f,   %c,   %d,   %f,   %d\n",
-        p.i1, p.f1, p.d1, p.s1, p.d2, p.c1, p.s2, p.f2, p.i2);
-}
-
-void print_param_addr(params *p) {
-  printf("%d,   %f,   %f,   %d,   %f,   %c,   %d,   %f,   %d\n",
-        p->i1, p->f1, p->d1, p->s1, p->d2, p->c1, p->s2, p->f2, p->i2);
-}
-
-int main() {
-  params p;
-  p.i1 = 1;
-  p.f1 = 2.0;
-  p.d1 = 3.0;
-  p.s1 = 4;
-  p.d2 = 5.0;
-  p.c1 = '6';
-  p.s2 = 7;
-  p.f2 = 8.0;
-  p.i2 = 9;
-  print_param(p);
-  print_param_addr(&p);
-  return 0;
-}