зеркало из https://github.com/microsoft/clang-1.git
Remove some redundant tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89069 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
48270a3674
Коммит
b1295dace2
|
@ -1,15 +0,0 @@
|
|||
// RUN: clang-cc -emit-llvm -o - %s > %t
|
||||
// RUN: not grep "__builtin" %t
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
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));
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
// RUN: clang-cc -emit-llvm -o - %s > %t
|
||||
// RUN: not grep "__builtin" %t
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
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;
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
// RUN: clang-cc -fsyntax-only -verify %s
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
void foo(FILE *FP) {}
|
Загрузка…
Ссылка в новой задаче