From f85fabec35026158a8a5490100cf2b07c93c7a43 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 17 Nov 2009 08:57:06 +0000 Subject: [PATCH] Remove some redundant tests. llvm-svn: 89069 --- .../CodeGen/builtins-ffs_parity_popcount.c | 15 ---------- clang/test/CodeGen/builtins-powi.c | 28 ------------------- clang/test/Misc/diag-checker.c | 5 ---- 3 files changed, 48 deletions(-) delete mode 100644 clang/test/CodeGen/builtins-ffs_parity_popcount.c delete mode 100644 clang/test/CodeGen/builtins-powi.c delete mode 100644 clang/test/Misc/diag-checker.c diff --git a/clang/test/CodeGen/builtins-ffs_parity_popcount.c b/clang/test/CodeGen/builtins-ffs_parity_popcount.c deleted file mode 100644 index 74e104b437c6..000000000000 --- a/clang/test/CodeGen/builtins-ffs_parity_popcount.c +++ /dev/null @@ -1,15 +0,0 @@ -// RUN: clang-cc -emit-llvm -o - %s > %t -// RUN: not grep "__builtin" %t - -#include - -void test(int M, long long N) { - printf("%d %lld: %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d\n", - M, N, - __builtin_ffs(M), __builtin_ffsl(M), __builtin_ffsll(M), - __builtin_parity(M), __builtin_parityl(M), __builtin_parityll(M), - __builtin_popcount(M), __builtin_popcountl(M), __builtin_popcountll(M), - __builtin_ffs(N), __builtin_ffsl(N), __builtin_ffsll(N), - __builtin_parity(N), __builtin_parityl(N), __builtin_parityll(N), - __builtin_popcount(N), __builtin_popcountl(N), __builtin_popcountll(N)); -} diff --git a/clang/test/CodeGen/builtins-powi.c b/clang/test/CodeGen/builtins-powi.c deleted file mode 100644 index 945ec5dd13ea..000000000000 --- a/clang/test/CodeGen/builtins-powi.c +++ /dev/null @@ -1,28 +0,0 @@ -// RUN: clang-cc -emit-llvm -o - %s > %t -// RUN: not grep "__builtin" %t - -#include -#include - -void test(long double a, int b) { - printf("%Lf**%d: %08x %08x %016Lx\n", - a, b, - __builtin_powi(a, b), - __builtin_powif(a, b), - __builtin_powil(a, b) - ); -} - -int main() { - int i; - - test(-1,-1LL); - test(0,0); - test(1,1); - - for (i=0; i<3; i++) { - test(random(), i); - } - - return 0; -} diff --git a/clang/test/Misc/diag-checker.c b/clang/test/Misc/diag-checker.c deleted file mode 100644 index 4733ee1e03d7..000000000000 --- a/clang/test/Misc/diag-checker.c +++ /dev/null @@ -1,5 +0,0 @@ -// RUN: clang-cc -fsyntax-only -verify %s - -#include - -void foo(FILE *FP) {}