[llvm-commits] [llvm-gcc-4.2] r48615 - /llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/4891561.c
Bill Wendling
isanbard at gmail.com
Thu Mar 20 14:37:49 PDT 2008
Author: void
Date: Thu Mar 20 16:37:49 2008
New Revision: 48615
URL: http://llvm.org/viewvc/llvm-project?rev=48615&view=rev
Log:
Remove redundant tests.
Modified:
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/4891561.c
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/4891561.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/4891561.c?rev=48615&r1=48614&r2=48615&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/4891561.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/4891561.c Thu Mar 20 16:37:49 2008
@@ -53,113 +53,3 @@
foo (i, arg, searchlen);
return 0;
}
-/* APPLE LOCAL file radar 4891561 */
-/* { dg-do compile { target i?86-*-darwin* } } */
-/* { dg-options "-O1 -std=gnu99 -fno-inline -fschedule-insns -mtune=pentium-m" } */
-/* { dg-skip-if "" { i?86-*-darwin* } { "-m64" } { "" } } */
-
-static inline unsigned char ceq (unsigned char a, unsigned char b)
-{
- return a;
-}
-
-static inline unsigned char substr (const unsigned char * big,
- const char * small,
- unsigned char len,
- unsigned char slen)
-{
- unsigned char i=0, i2=0;
- if (slen == 0)
- return 1;
-redo:
- if (ceq (big[i],small[0]))
- goto more;
- return 0;
-
-more:
- i2 = 1;
- for (i++; i < len; i++,i2++) {
- if (slen == i2)
- return 1;
- else
- goto redo;
- }
- return 0;
-}
-
-static const unsigned char inputs[94] =
- " \"$%&'()*+,-.!/0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";
-
-static void foo (unsigned char len, const char * search, unsigned char searchlen)
-{
- unsigned char count[8];
- unsigned char *buf;
- if (substr (buf, search, 11, searchlen)) {
- unsigned char in[9],j;
- for (j=0; j < len; j++)
- in[j] = inputs[count[j]];
- }
-}
-
-int main ()
-{
- int i, searchlen;
- const char *arg;
- foo (i, arg, searchlen);
- return 0;
-}
-/* APPLE LOCAL file radar 4891561 */
-/* { dg-do compile { target i?86-*-darwin* } } */
-/* { dg-options "-O1 -std=gnu99 -fno-inline -fschedule-insns -mtune=pentium-m" } */
-/* { dg-skip-if "" { i?86-*-darwin* } { "-m64" } { "" } } */
-
-static inline unsigned char ceq (unsigned char a, unsigned char b)
-{
- return a;
-}
-
-static inline unsigned char substr (const unsigned char * big,
- const char * small,
- unsigned char len,
- unsigned char slen)
-{
- unsigned char i=0, i2=0;
- if (slen == 0)
- return 1;
-redo:
- if (ceq (big[i],small[0]))
- goto more;
- return 0;
-
-more:
- i2 = 1;
- for (i++; i < len; i++,i2++) {
- if (slen == i2)
- return 1;
- else
- goto redo;
- }
- return 0;
-}
-
-static const unsigned char inputs[94] =
- " \"$%&'()*+,-.!/0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";
-
-static void foo (unsigned char len, const char * search, unsigned char searchlen)
-{
- unsigned char count[8];
- unsigned char *buf;
- if (substr (buf, search, 11, searchlen)) {
- unsigned char in[9],j;
- for (j=0; j < len; j++)
- in[j] = inputs[count[j]];
- }
-}
-
-int main ()
-{
- int i, searchlen;
- const char *arg;
- foo (i, arg, searchlen);
- return 0;
-}
More information about the llvm-commits
mailing list