diff options
| author | Alexandros Lamprineas <alexandros.lamprineas@arm.com> | 2015-10-02 14:56:37 +0000 |
|---|---|---|
| committer | Alexandros Lamprineas <alexandros.lamprineas@arm.com> | 2015-10-02 14:56:37 +0000 |
| commit | f5a8e6c5ab1390e7c9d347451c6276bc52443abf (patch) | |
| tree | 39b388762aba3a6ca18c7ed1b267f65bbf3f1af6 /clang/test/Preprocessor | |
| parent | 8930f4846cc461874b3afdc1f0d9c5bf3c3b7fed (diff) | |
| download | bcm5719-llvm-f5a8e6c5ab1390e7c9d347451c6276bc52443abf.tar.gz bcm5719-llvm-f5a8e6c5ab1390e7c9d347451c6276bc52443abf.zip | |
Implement ACLE 2.0 macros of chapters 6.6 and 6.7 for [ARM] and [Aarch64] targets.
Differential Revision: http://reviews.llvm.org/D12633
llvm-svn: 249140
Diffstat (limited to 'clang/test/Preprocessor')
| -rw-r--r-- | clang/test/Preprocessor/aarch64-target-features.c | 6 | ||||
| -rw-r--r-- | clang/test/Preprocessor/arm-target-features.c | 9 |
2 files changed, 14 insertions, 1 deletions
diff --git a/clang/test/Preprocessor/aarch64-target-features.c b/clang/test/Preprocessor/aarch64-target-features.c index 21152bfe1c6..b5864db1629 100644 --- a/clang/test/Preprocessor/aarch64-target-features.c +++ b/clang/test/Preprocessor/aarch64-target-features.c @@ -30,10 +30,11 @@ // CHECK: __ARM_FP16_ARGS 1 // CHECK: __ARM_FP16_FORMAT_IEEE 1 // CHECK-NOT: __ARM_FP_FAST 1 -// CHECK: __ARM_FP_FENV_ROUNDING 1 // CHECK: __ARM_NEON 1 // CHECK: __ARM_NEON_FP 0xE // CHECK: __ARM_PCS_AAPCS64 1 +// CHECK-NOT: __ARM_PCS 1 +// CHECK-NOT: __ARM_PCS_VFP 1 // CHECK-NOT: __ARM_SIZEOF_MINIMAL_ENUM 1 // CHECK-NOT: __ARM_SIZEOF_WCHAR_T 2 @@ -50,6 +51,9 @@ // RUN: %clang -target arm64-none-linux-gnu -march=armv8-a+crc -x c -E -dM %s -o - | FileCheck --check-prefix=CHECK-CRC32 %s // CHECK-CRC32: __ARM_FEATURE_CRC32 1 +// RUN: %clang -target aarch64-none-linux-gnu -fno-math-errno -fno-signed-zeros\ +// RUN: -fno-trapping-math -fassociative-math -freciprocal-math\ +// RUN: -x c -E -dM %s -o - | FileCheck --check-prefix=CHECK-FASTMATH %s // RUN: %clang -target aarch64-none-linux-gnu -ffast-math -x c -E -dM %s -o - | FileCheck --check-prefix=CHECK-FASTMATH %s // RUN: %clang -target arm64-none-linux-gnu -ffast-math -x c -E -dM %s -o - | FileCheck --check-prefix=CHECK-FASTMATH %s // CHECK-FASTMATH: __ARM_FP_FAST 1 diff --git a/clang/test/Preprocessor/arm-target-features.c b/clang/test/Preprocessor/arm-target-features.c index 0cc909444fc..59f180b1911 100644 --- a/clang/test/Preprocessor/arm-target-features.c +++ b/clang/test/Preprocessor/arm-target-features.c @@ -32,6 +32,7 @@ // CHECK-V8-BAREHF: __ARM_FEATURE_DIRECTED_ROUNDING 1 // CHECK-V8-BAREHF: __ARM_FEATURE_NUMERIC_MAXMIN 1 // CHECK-V8-BAREHF: __ARM_NEON__ 1 +// CHECK-V8-BAREHF: __ARM_PCS_VFP 1 // CHECK-V8-BAREHF: __VFP_FP__ 1 // RUN: %clang -target armv8a -mfloat-abi=hard -mfpu=fp-armv8 -x c -E -dM %s | FileCheck --check-prefix=CHECK-V8-BAREHF-FP %s @@ -85,9 +86,17 @@ // THUMBV8A-EABI:#define __ARM_ARCH_EXT_IDIV__ 1 // RUN: %clang -target arm-none-linux-gnu -x c -E -dM %s -o - | FileCheck --check-prefix=CHECK-DEFS %s +// CHECK-DEFS:#define __ARM_PCS 1 // CHECK-DEFS:#define __ARM_SIZEOF_MINIMAL_ENUM 4 // CHECK-DEFS:#define __ARM_SIZEOF_WCHAR_T 4 +// RUN: %clang -target arm-none-linux-gnu -fno-math-errno -fno-signed-zeros\ +// RUN: -fno-trapping-math -fassociative-math -freciprocal-math\ +// RUN: -x c -E -dM %s -o - | FileCheck --check-prefix=CHECK-FASTMATH %s +// RUN: %clang -target arm-none-linux-gnu -ffast-math -x c -E -dM %s -o -\ +// RUN: | FileCheck --check-prefix=CHECK-FASTMATH %s +// CHECK-FASTMATH: __ARM_FP_FAST 1 + // RUN: %clang -target arm-none-linux-gnu -fshort-wchar -x c -E -dM %s -o - | FileCheck --check-prefix=CHECK-SHORTWCHAR %s // CHECK-SHORTWCHAR:#define __ARM_SIZEOF_WCHAR_T 2 |

