diff options
author | Tim Northover <Tim.Northover@arm.com> | 2013-01-31 12:13:10 +0000 |
---|---|---|
committer | Tim Northover <Tim.Northover@arm.com> | 2013-01-31 12:13:10 +0000 |
commit | c264e16a42b3f6c36521857a29ea0949d9781c22 (patch) | |
tree | c65f59d74e94b2ef6efa080c8f72e82f71fed848 /test/Preprocessor | |
parent | 903ef044e5fe8efe5d06f63945f903ae81a262fd (diff) |
Add support for AArch64 target.
In cooperation with the LLVM patch, this should implement all scalar front-end
parts of the C and C++ ABIs for AArch64.
This patch excludes the NEON support also reviewed due to an outbreak of
batshit insanity in our legal department. That will be committed soon bringing
the changes to precisely what has been approved.
Further reviews would be gratefully received.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174055 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor')
-rw-r--r-- | test/Preprocessor/aarch64-target-features.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/Preprocessor/aarch64-target-features.c b/test/Preprocessor/aarch64-target-features.c new file mode 100644 index 0000000000..65104e3311 --- /dev/null +++ b/test/Preprocessor/aarch64-target-features.c @@ -0,0 +1,30 @@ +// RUN: %clang -target aarch64-none-linux-gnu -x c -E -dM %s -o - | FileCheck %s +// CHECK: __AARCH 8 +// CHECK: __AARCH64EL__ +// CHECK: __AARCH_ACLE 101 +// CHECK-NOT: __AARCH_ADVSIMD_FP +// CHECK-NOT: __AARCH_FEATURE_ADVSIMD +// CHECK-NOT: __AARCH_FEATURE_BIG_ENDIAN +// CHECK: __AARCH_FEATURE_CLZ 1 +// CHECK: __AARCH_FEATURE_FMA 1 +// CHECK: __AARCH_FEATURE_LDREX 0xf +// CHECK: __AARCH_FEATURE_UNALIGNED 1 +// CHECK: __AARCH_FP 0xe +// CHECK-NOT: __AARCH_FP_FAST +// CHECK: __AARCH_FP16_FORMAT_IEEE 1 +// CHECK: __AARCH_FP_FENV_ROUNDING 1 +// CHECK: __AARCH_PROFILE 'A' +// CHECK: __AARCH_SIZEOF_MINIMAL_ENUM 4 +// CHECK: __AARCH_SIZEOF_WCHAR_T 4 +// CHECK: __aarch64__ + + +// RUN: %clang -target aarch64-none-linux-gnu -ffast-math -x c -E -dM %s -o - | FileCheck --check-prefix=CHECK-FASTMATH %s +// CHECK-FASTMATH: __AARCH_FP_FAST + +// RUN: %clang -target aarch64-none-linux-gnu -fshort-wchar -x c -E -dM %s -o - | FileCheck --check-prefix=CHECK-SHORTWCHAR %s +// CHECK-SHORTWCHAR: __AARCH_SIZEOF_WCHAR_T 2 + +// RUN: %clang -target aarch64-none-linux-gnu -fshort-enums -x c -E -dM %s -o - | FileCheck --check-prefix=CHECK-SHORTENUMS %s +// CHECK-SHORTENUMS: __AARCH_SIZEOF_MINIMAL_ENUM 1 + |