[llvm-commits] [llvm-gcc-4.2] r48622 - in /llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple: 5612779.c dwarf-optimized-1.c dwarf-optimized-2.c dwarf-optimized-3.c sync-1.c

Bill Wendling isanbard at gmail.com
Thu Mar 20 15:59:37 PDT 2008


Author: void
Date: Thu Mar 20 17:59:36 2008
New Revision: 48622

URL: http://llvm.org/viewvc/llvm-project?rev=48622&view=rev
Log:
Remove redundant tests

Modified:
    llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/5612779.c
    llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/dwarf-optimized-1.c
    llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/dwarf-optimized-2.c
    llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/dwarf-optimized-3.c
    llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/sync-1.c

Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/5612779.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/5612779.c?rev=48622&r1=48621&r2=48622&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/5612779.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/5612779.c Thu Mar 20 17:59:36 2008
@@ -9,25 +9,3 @@
     abort ();
   return 0;
 }
-/* APPLE FILE local radar 5612279 */ 
-/* { dg-do run } */
-extern void abort (void);
-int main ()
-{
-  int result, i = 0;
-  result = -2*abs(i-2);
-  if (result != -4)
-    abort ();
-  return 0;
-}
-/* APPLE FILE local radar 5612279 */ 
-/* { dg-do run } */
-extern void abort (void);
-int main ()
-{
-  int result, i = 0;
-  result = -2*abs(i-2);
-  if (result != -4)
-    abort ();
-  return 0;
-}

Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/dwarf-optimized-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/dwarf-optimized-1.c?rev=48622&r1=48621&r2=48622&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/dwarf-optimized-1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/dwarf-optimized-1.c Thu Mar 20 17:59:36 2008
@@ -72,151 +72,3 @@
 
   return answer;
 }
-/* Radar 2338865 */
-/* { dg-do compile } */
-/* { dg-options "-O3 -gdwarf-2 -dA" } */
-/* { dg-skip-if "Unmatchable assembly" { mmix-*-* } { "*" } { "" } } */
-/* { dg-final { scan-assembler "DW_AT_APPLE_optimized" } } */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <math.h>
-
-
-int 
-main (int argc, char **argv)
-{
-  int x;
-  
-  fprintf (stdout, "Here we go!!\n");
-  
-  x = foo ();
-
-  fprintf (stdout, "We made it all the way to the top with %d\n", x);
-
-  return 0;
-}
-
-int
-foo (void)
-{
-  int  y;
-  double r;
-
-  y = bar ();
-
-  r = sqrt (y);
-  fprintf (stdout, "The squareroot of %d is %f.\n",  y, r);
-
-  return y;
-}
-
-int
-bar (void)
-{
-  int z;
-  int result = 1;
-  int n;
-  int i;
-
-  z = baz ();
-  n = z % 10;
-
-  for (i = 0; i < n; i++)
-    if (i > 0)
-      result = result * i;
-
-  fprintf (stdout, "Multiplying the first ten numbers of %d is %d\n", z, result);
-
-  return z;
-}
-
-int
-baz (void)
-{
-  char *buffer;
-  int len;
-  int answer;
-
-  buffer = (char *) malloc (80);
-  fprintf (stdout, "Please enter a number: ");
-  gets (buffer);
-  answer = atoi (buffer);
-
-  return answer;
-}
-/* Radar 2338865 */
-/* { dg-do compile } */
-/* { dg-options "-O3 -gdwarf-2 -dA" } */
-/* { dg-skip-if "Unmatchable assembly" { mmix-*-* } { "*" } { "" } } */
-/* { dg-final { scan-assembler "DW_AT_APPLE_optimized" } } */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <math.h>
-
-
-int 
-main (int argc, char **argv)
-{
-  int x;
-  
-  fprintf (stdout, "Here we go!!\n");
-  
-  x = foo ();
-
-  fprintf (stdout, "We made it all the way to the top with %d\n", x);
-
-  return 0;
-}
-
-int
-foo (void)
-{
-  int  y;
-  double r;
-
-  y = bar ();
-
-  r = sqrt (y);
-  fprintf (stdout, "The squareroot of %d is %f.\n",  y, r);
-
-  return y;
-}
-
-int
-bar (void)
-{
-  int z;
-  int result = 1;
-  int n;
-  int i;
-
-  z = baz ();
-  n = z % 10;
-
-  for (i = 0; i < n; i++)
-    if (i > 0)
-      result = result * i;
-
-  fprintf (stdout, "Multiplying the first ten numbers of %d is %d\n", z, result);
-
-  return z;
-}
-
-int
-baz (void)
-{
-  char *buffer;
-  int len;
-  int answer;
-
-  buffer = (char *) malloc (80);
-  fprintf (stdout, "Please enter a number: ");
-  gets (buffer);
-  answer = atoi (buffer);
-
-  return answer;
-}

Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/dwarf-optimized-2.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/dwarf-optimized-2.c?rev=48622&r1=48621&r2=48622&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/dwarf-optimized-2.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/dwarf-optimized-2.c Thu Mar 20 17:59:36 2008
@@ -72,151 +72,3 @@
 
   return answer;
 }
-/* Radar 2338865 */
-/* { dg-do compile } */
-/* { dg-options "-O0 -gdwarf-2 -dA" } */
-/* { dg-skip-if "Unmatchable assembly" { mmix-*-* } { "*" } { "" } } */
-/* { dg-final { scan-assembler-not "DW_AT_APPLE_optimized" } } */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <math.h>
-
-
-int 
-main (int argc, char **argv)
-{
-  int x;
-  
-  fprintf (stdout, "Here we go!!\n");
-  
-  x = foo ();
-
-  fprintf (stdout, "We made it all the way to the top with %d\n", x);
-
-  return 0;
-}
-
-int
-foo (void)
-{
-  int  y;
-  double r;
-
-  y = bar ();
-
-  r = sqrt (y);
-  fprintf (stdout, "The squareroot of %d is %f.\n",  y, r);
-
-  return y;
-}
-
-int
-bar (void)
-{
-  int z;
-  int result = 1;
-  int n;
-  int i;
-
-  z = baz ();
-  n = z % 10;
-
-  for (i = 0; i < n; i++)
-    if (i > 0)
-      result = result * i;
-
-  fprintf (stdout, "Multiplying the first ten numbers of %d is %d\n", z, result);
-
-  return z;
-}
-
-int
-baz (void)
-{
-  char *buffer;
-  int len;
-  int answer;
-
-  buffer = (char *) malloc (80);
-  fprintf (stdout, "Please enter a number: ");
-  gets (buffer);
-  answer = atoi (buffer);
-
-  return answer;
-}
-/* Radar 2338865 */
-/* { dg-do compile } */
-/* { dg-options "-O0 -gdwarf-2 -dA" } */
-/* { dg-skip-if "Unmatchable assembly" { mmix-*-* } { "*" } { "" } } */
-/* { dg-final { scan-assembler-not "DW_AT_APPLE_optimized" } } */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <math.h>
-
-
-int 
-main (int argc, char **argv)
-{
-  int x;
-  
-  fprintf (stdout, "Here we go!!\n");
-  
-  x = foo ();
-
-  fprintf (stdout, "We made it all the way to the top with %d\n", x);
-
-  return 0;
-}
-
-int
-foo (void)
-{
-  int  y;
-  double r;
-
-  y = bar ();
-
-  r = sqrt (y);
-  fprintf (stdout, "The squareroot of %d is %f.\n",  y, r);
-
-  return y;
-}
-
-int
-bar (void)
-{
-  int z;
-  int result = 1;
-  int n;
-  int i;
-
-  z = baz ();
-  n = z % 10;
-
-  for (i = 0; i < n; i++)
-    if (i > 0)
-      result = result * i;
-
-  fprintf (stdout, "Multiplying the first ten numbers of %d is %d\n", z, result);
-
-  return z;
-}
-
-int
-baz (void)
-{
-  char *buffer;
-  int len;
-  int answer;
-
-  buffer = (char *) malloc (80);
-  fprintf (stdout, "Please enter a number: ");
-  gets (buffer);
-  answer = atoi (buffer);
-
-  return answer;
-}

Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/dwarf-optimized-3.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/dwarf-optimized-3.c?rev=48622&r1=48621&r2=48622&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/dwarf-optimized-3.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/dwarf-optimized-3.c Thu Mar 20 17:59:36 2008
@@ -75,157 +75,3 @@
 
   return answer;
 }
-/* Radar 2338865 */
-/* { dg-do compile } */
-/* { dg-options "-O0 -gdwarf-2 -dA" } */
-/* { dg-skip-if "Unmatchable assembly" { mmix-*-* } { "*" } { "" } } */
-/* { dg-final { scan-assembler "DW_AT_APPLE_optimized" } } */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <math.h>
-
-
-int 
-main (int argc, char **argv)
-{
-  int x;
-  
-  fprintf (stdout, "Here we go!!\n");
-  
-  x = foo ();
-
-  fprintf (stdout, "We made it all the way to the top with %d\n", x);
-
-  return 0;
-}
-
-int
-foo (void)
-{
-  int  y;
-  double r;
-
-  y = bar ();
-
-  r = sqrt (y);
-  fprintf (stdout, "The squareroot of %d is %f.\n",  y, r);
-
-  return y;
-}
-
-#pragma optimization_level 3
-int
-bar (void)
-{
-  int z;
-  int result = 1;
-  int n;
-  int i;
-
-  z = baz ();
-  n = z % 10;
-
-  for (i = 0; i < n; i++)
-    if (i > 0)
-      result = result * i;
-
-  fprintf (stdout, "Multiplying the first ten numbers of %d is %d\n", z, result);
-
-  return z;
-}
-
-#pragma optimization_level reset
-
-int
-baz (void)
-{
-  char *buffer;
-  int len;
-  int answer;
-
-  buffer = (char *) malloc (80);
-  fprintf (stdout, "Please enter a number: ");
-  gets (buffer);
-  answer = atoi (buffer);
-
-  return answer;
-}
-/* Radar 2338865 */
-/* { dg-do compile } */
-/* { dg-options "-O0 -gdwarf-2 -dA" } */
-/* { dg-skip-if "Unmatchable assembly" { mmix-*-* } { "*" } { "" } } */
-/* { dg-final { scan-assembler "DW_AT_APPLE_optimized" } } */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <math.h>
-
-
-int 
-main (int argc, char **argv)
-{
-  int x;
-  
-  fprintf (stdout, "Here we go!!\n");
-  
-  x = foo ();
-
-  fprintf (stdout, "We made it all the way to the top with %d\n", x);
-
-  return 0;
-}
-
-int
-foo (void)
-{
-  int  y;
-  double r;
-
-  y = bar ();
-
-  r = sqrt (y);
-  fprintf (stdout, "The squareroot of %d is %f.\n",  y, r);
-
-  return y;
-}
-
-#pragma optimization_level 3
-int
-bar (void)
-{
-  int z;
-  int result = 1;
-  int n;
-  int i;
-
-  z = baz ();
-  n = z % 10;
-
-  for (i = 0; i < n; i++)
-    if (i > 0)
-      result = result * i;
-
-  fprintf (stdout, "Multiplying the first ten numbers of %d is %d\n", z, result);
-
-  return z;
-}
-
-#pragma optimization_level reset
-
-int
-baz (void)
-{
-  char *buffer;
-  int len;
-  int answer;
-
-  buffer = (char *) malloc (80);
-  fprintf (stdout, "Please enter a number: ");
-  gets (buffer);
-  answer = atoi (buffer);
-
-  return answer;
-}

Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/sync-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/sync-1.c?rev=48622&r1=48621&r2=48622&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/sync-1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/sync-1.c Thu Mar 20 17:59:36 2008
@@ -98,203 +98,3 @@
 
   return 0;
 }
-/* { dg-do run } */
-/* { dg-require-effective-target sync_char_short } */
-/* { dg-options "-mcpu=v9" { target sparc*-*-* } } */
-
-/* Test functionality of the intrinsics for 'short' and 'char'.  */
-
-extern void abort (void);
-extern void *memcpy (void *, const void *, __SIZE_TYPE__);
-
-static char AI[18];
-static char init_qi[18] = { 3,5,7,9,0,0,0,0,-1,0,0,0,0,0,-1,0,0,0 };
-static char test_qi[18] = { 3,5,7,9,1,4,22,-12,7,8,9,7,1,-12,7,8,9,7 };
-
-static void
-do_qi (void)
-{
-  if (__sync_fetch_and_add(AI+4, 1) != 0)
-    abort ();
-  if (__sync_fetch_and_add(AI+5, 4) != 0)
-    abort ();
-  if (__sync_fetch_and_add(AI+6, 22) != 0)
-    abort ();
-  if (__sync_fetch_and_sub(AI+7, 12) != 0)
-    abort ();
-  if (__sync_fetch_and_and(AI+8, 7) != (char)-1)
-    abort ();
-  if (__sync_fetch_and_or(AI+9, 8) != 0)
-    abort ();
-  if (__sync_fetch_and_xor(AI+10, 9) != 0)
-    abort ();
-  if (__sync_fetch_and_nand(AI+11, 7) != 0)
-    abort ();
-
-  if (__sync_add_and_fetch(AI+12, 1) != 1)
-    abort ();
-  if (__sync_sub_and_fetch(AI+13, 12) != (char)-12)
-    abort ();
-  if (__sync_and_and_fetch(AI+14, 7) != 7)
-    abort ();
-  if (__sync_or_and_fetch(AI+15, 8) != 8)
-    abort ();
-  if (__sync_xor_and_fetch(AI+16, 9) != 9)
-    abort ();
-  if (__sync_nand_and_fetch(AI+17, 7) != 7)
-    abort ();
-}
-
-static short AL[18];
-static short init_hi[18] = { 3,5,7,9,0,0,0,0,-1,0,0,0,0,0,-1,0,0,0 };
-static short test_hi[18] = { 3,5,7,9,1,4,22,-12,7,8,9,7,1,-12,7,8,9,7 };
-
-static void
-do_hi (void)
-{
-  if (__sync_fetch_and_add(AL+4, 1) != 0)
-    abort ();
-  if (__sync_fetch_and_add(AL+5, 4) != 0)
-    abort ();
-  if (__sync_fetch_and_add(AL+6, 22) != 0)
-    abort ();
-  if (__sync_fetch_and_sub(AL+7, 12) != 0)
-    abort ();
-  if (__sync_fetch_and_and(AL+8, 7) != -1)
-    abort ();
-  if (__sync_fetch_and_or(AL+9, 8) != 0)
-    abort ();
-  if (__sync_fetch_and_xor(AL+10, 9) != 0)
-    abort ();
-  if (__sync_fetch_and_nand(AL+11, 7) != 0)
-    abort ();
-
-  if (__sync_add_and_fetch(AL+12, 1) != 1)
-    abort ();
-  if (__sync_sub_and_fetch(AL+13, 12) != -12)
-    abort ();
-  if (__sync_and_and_fetch(AL+14, 7) != 7)
-    abort ();
-  if (__sync_or_and_fetch(AL+15, 8) != 8)
-    abort ();
-  if (__sync_xor_and_fetch(AL+16, 9) != 9)
-    abort ();
-  if (__sync_nand_and_fetch(AL+17, 7) != 7)
-    abort ();
-}
-
-int main()
-{
-  memcpy(AI, init_qi, sizeof(init_qi));
-  memcpy(AL, init_hi, sizeof(init_hi));
-
-  do_qi ();
-  do_hi ();
-
-  if (memcmp (AI, test_qi, sizeof(test_qi)))
-    abort ();
-  if (memcmp (AL, test_hi, sizeof(test_hi)))
-    abort ();
-
-  return 0;
-}
-/* { dg-do run } */
-/* { dg-require-effective-target sync_char_short } */
-/* { dg-options "-mcpu=v9" { target sparc*-*-* } } */
-
-/* Test functionality of the intrinsics for 'short' and 'char'.  */
-
-extern void abort (void);
-extern void *memcpy (void *, const void *, __SIZE_TYPE__);
-
-static char AI[18];
-static char init_qi[18] = { 3,5,7,9,0,0,0,0,-1,0,0,0,0,0,-1,0,0,0 };
-static char test_qi[18] = { 3,5,7,9,1,4,22,-12,7,8,9,7,1,-12,7,8,9,7 };
-
-static void
-do_qi (void)
-{
-  if (__sync_fetch_and_add(AI+4, 1) != 0)
-    abort ();
-  if (__sync_fetch_and_add(AI+5, 4) != 0)
-    abort ();
-  if (__sync_fetch_and_add(AI+6, 22) != 0)
-    abort ();
-  if (__sync_fetch_and_sub(AI+7, 12) != 0)
-    abort ();
-  if (__sync_fetch_and_and(AI+8, 7) != (char)-1)
-    abort ();
-  if (__sync_fetch_and_or(AI+9, 8) != 0)
-    abort ();
-  if (__sync_fetch_and_xor(AI+10, 9) != 0)
-    abort ();
-  if (__sync_fetch_and_nand(AI+11, 7) != 0)
-    abort ();
-
-  if (__sync_add_and_fetch(AI+12, 1) != 1)
-    abort ();
-  if (__sync_sub_and_fetch(AI+13, 12) != (char)-12)
-    abort ();
-  if (__sync_and_and_fetch(AI+14, 7) != 7)
-    abort ();
-  if (__sync_or_and_fetch(AI+15, 8) != 8)
-    abort ();
-  if (__sync_xor_and_fetch(AI+16, 9) != 9)
-    abort ();
-  if (__sync_nand_and_fetch(AI+17, 7) != 7)
-    abort ();
-}
-
-static short AL[18];
-static short init_hi[18] = { 3,5,7,9,0,0,0,0,-1,0,0,0,0,0,-1,0,0,0 };
-static short test_hi[18] = { 3,5,7,9,1,4,22,-12,7,8,9,7,1,-12,7,8,9,7 };
-
-static void
-do_hi (void)
-{
-  if (__sync_fetch_and_add(AL+4, 1) != 0)
-    abort ();
-  if (__sync_fetch_and_add(AL+5, 4) != 0)
-    abort ();
-  if (__sync_fetch_and_add(AL+6, 22) != 0)
-    abort ();
-  if (__sync_fetch_and_sub(AL+7, 12) != 0)
-    abort ();
-  if (__sync_fetch_and_and(AL+8, 7) != -1)
-    abort ();
-  if (__sync_fetch_and_or(AL+9, 8) != 0)
-    abort ();
-  if (__sync_fetch_and_xor(AL+10, 9) != 0)
-    abort ();
-  if (__sync_fetch_and_nand(AL+11, 7) != 0)
-    abort ();
-
-  if (__sync_add_and_fetch(AL+12, 1) != 1)
-    abort ();
-  if (__sync_sub_and_fetch(AL+13, 12) != -12)
-    abort ();
-  if (__sync_and_and_fetch(AL+14, 7) != 7)
-    abort ();
-  if (__sync_or_and_fetch(AL+15, 8) != 8)
-    abort ();
-  if (__sync_xor_and_fetch(AL+16, 9) != 9)
-    abort ();
-  if (__sync_nand_and_fetch(AL+17, 7) != 7)
-    abort ();
-}
-
-int main()
-{
-  memcpy(AI, init_qi, sizeof(init_qi));
-  memcpy(AL, init_hi, sizeof(init_hi));
-
-  do_qi ();
-  do_hi ();
-
-  if (memcmp (AI, test_qi, sizeof(test_qi)))
-    abort ();
-  if (memcmp (AL, test_hi, sizeof(test_hi)))
-    abort ();
-
-  return 0;
-}





More information about the llvm-commits mailing list