diff options
author | Amy Kwan <amy.kwan1@ibm.com> | 2018-12-19 15:52:41 +0000 |
---|---|---|
committer | Amy Kwan <amy.kwan1@ibm.com> | 2018-12-19 15:52:41 +0000 |
commit | 6c735b02f15e70718d96d70c90ff3ba410e05950 (patch) | |
tree | 00bc879895b604f8f8c25917b03b4ab0e0b35b00 | |
parent | 22cd453ba7cb59b938aff0d0ae2aa38197475b5c (diff) | |
download | bcm5719-llvm-6c735b02f15e70718d96d70c90ff3ba410e05950.tar.gz bcm5719-llvm-6c735b02f15e70718d96d70c90ff3ba410e05950.zip |
[compiler-rt][builtins][PowerPC] Enable builtins tests on PowerPC 64 bit LE
This patch aims to enable the tests for the compiler-rt builtin functions (that
currently already exist within compiler-rt) for PowerPC 64bit LE (ppc64le).
Previously when unit tests are run, these tests would be reported as
UNSUPPORTED. This patch updates the REQUIRES line for each test (to enable for
ppc64le), and each test is linked against compiler-rt when running.
Differential Revision: https://reviews.llvm.org/D54449
llvm-svn: 349634
7 files changed, 17 insertions, 15 deletions
diff --git a/compiler-rt/test/builtins/Unit/ppc/fixtfdi_test.c b/compiler-rt/test/builtins/Unit/ppc/fixtfdi_test.c index ea6c4056377..0dc6636552c 100644 --- a/compiler-rt/test/builtins/Unit/ppc/fixtfdi_test.c +++ b/compiler-rt/test/builtins/Unit/ppc/fixtfdi_test.c @@ -1,5 +1,5 @@ -// REQUIRES: powerpc-registered-target -// RUN: %clang_builtins %s -o %t && %run %t +// REQUIRES: target-is-powerpc64le +// RUN: %clang_builtins %s %librt -o %t && %run %t #include <stdio.h> #include <limits.h> #include <stdint.h> @@ -476,4 +476,4 @@ int main(int argc, char *argv[]) { } return 0; -}
\ No newline at end of file +} diff --git a/compiler-rt/test/builtins/Unit/ppc/floatditf_test.c b/compiler-rt/test/builtins/Unit/ppc/floatditf_test.c index 5c08ade4bdf..e9b9458349e 100644 --- a/compiler-rt/test/builtins/Unit/ppc/floatditf_test.c +++ b/compiler-rt/test/builtins/Unit/ppc/floatditf_test.c @@ -1,7 +1,8 @@ -// REQUIRES: powerpc-registered-target -// RUN: %clang_builtins %s -o %t && %run %t +// REQUIRES: target-is-powerpc64le +// RUN: %clang_builtins %s %librt -o %t && %run %t #include <stdint.h> #include <stdio.h> +#include "int_lib.h" COMPILER_RT_ABI long double __floatditf(int64_t); diff --git a/compiler-rt/test/builtins/Unit/ppc/floatunditf_test.c b/compiler-rt/test/builtins/Unit/ppc/floatunditf_test.c index 3e50128578e..fc6090be178 100644 --- a/compiler-rt/test/builtins/Unit/ppc/floatunditf_test.c +++ b/compiler-rt/test/builtins/Unit/ppc/floatunditf_test.c @@ -1,7 +1,8 @@ -// REQUIRES: powerpc-registered-target -// RUN: %clang_builtins %s -o %t && %run %t +// REQUIRES: target-is-powerpc64le +// RUN: %clang_builtins %s %librt -o %t && %run %t #include <stdint.h> #include <stdio.h> +#include "int_lib.h" COMPILER_RT_ABI long double __floatunditf(uint64_t); diff --git a/compiler-rt/test/builtins/Unit/ppc/qadd_test.c b/compiler-rt/test/builtins/Unit/ppc/qadd_test.c index 327fd21e8aa..242850fff37 100644 --- a/compiler-rt/test/builtins/Unit/ppc/qadd_test.c +++ b/compiler-rt/test/builtins/Unit/ppc/qadd_test.c @@ -1,5 +1,5 @@ -// REQUIRES: powerpc-registered-target -// RUN: %clang_builtins %s -o %t && %run %t +// REQUIRES: target-is-powerpc64le +// RUN: %clang_builtins %s %librt -o %t && %run %t #include <stdio.h> #include "DD.h" diff --git a/compiler-rt/test/builtins/Unit/ppc/qdiv_test.c b/compiler-rt/test/builtins/Unit/ppc/qdiv_test.c index 7530e428fa7..15990f0c36f 100644 --- a/compiler-rt/test/builtins/Unit/ppc/qdiv_test.c +++ b/compiler-rt/test/builtins/Unit/ppc/qdiv_test.c @@ -1,5 +1,5 @@ -// REQUIRES: powerpc-registered-target -// RUN: %clang_builtins %s -o %t && %run %t +// REQUIRES: target-is-powerpc64le +// RUN: %clang_builtins %s %librt -o %t && %run %t #include <stdio.h> #include "DD.h" diff --git a/compiler-rt/test/builtins/Unit/ppc/qmul_test.c b/compiler-rt/test/builtins/Unit/ppc/qmul_test.c index dbe3536f309..c8e5bb096a2 100644 --- a/compiler-rt/test/builtins/Unit/ppc/qmul_test.c +++ b/compiler-rt/test/builtins/Unit/ppc/qmul_test.c @@ -1,5 +1,5 @@ -// REQUIRES: powerpc-registered-target -// RUN: %clang_builtins %s -o %t && %run %t +// REQUIRES: target-is-powerpc64le +// RUN: %clang_builtins %s %librt -o %t && %run %t #include <stdio.h> #include "DD.h" diff --git a/compiler-rt/test/builtins/Unit/ppc/qsub_test.c b/compiler-rt/test/builtins/Unit/ppc/qsub_test.c index e21224096f5..1e456f83aea 100644 --- a/compiler-rt/test/builtins/Unit/ppc/qsub_test.c +++ b/compiler-rt/test/builtins/Unit/ppc/qsub_test.c @@ -1,5 +1,5 @@ -// REQUIRES: powerpc-registered-target -// RUN: %clang_builtins %s -o %t && %run %t +// REQUIRES: target-is-powerpc64le +// RUN: %clang_builtins %s %librt -o %t && %run %t #include <stdio.h> #include "DD.h" |