summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/woa-defaults.c
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-04-04 20:31:19 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-04-04 20:31:19 +0000
commitf4c9e49f94494154f23f20f84a79552c9f1a03fb (patch)
tree2ff0cce22fe31ab23f5d0510f5782caf879e228e /clang/test/Preprocessor/woa-defaults.c
parentcf6f688a403f046ec9f81dfbfd04621ff7777072 (diff)
downloadbcm5719-llvm-f4c9e49f94494154f23f20f84a79552c9f1a03fb.tar.gz
bcm5719-llvm-f4c9e49f94494154f23f20f84a79552c9f1a03fb.zip
Driver: add target definition for Windows on ARM
This introduces the definitions needed for the Windows on ARM target. Add target definitions for both the MSVC environment and the MSVC + Itanium C++ ABI environment. The Visual Studio definitions correspond to the definitions provided by Visual Studio 2012. llvm-svn: 205650
Diffstat (limited to 'clang/test/Preprocessor/woa-defaults.c')
-rw-r--r--clang/test/Preprocessor/woa-defaults.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/woa-defaults.c b/clang/test/Preprocessor/woa-defaults.c
new file mode 100644
index 00000000000..6eab3b96f41
--- /dev/null
+++ b/clang/test/Preprocessor/woa-defaults.c
@@ -0,0 +1,33 @@
+// RUN: %clang_cc1 -dM -triple armv7-windows -E %s | FileCheck %s
+// RUN: %clang_cc1 -dM -fno-signed-char -triple armv7-windows -E %s \
+// RUN: | FileCheck %s -check-prefix CHECK-UNSIGNED-CHAR
+
+// CHECK: #define _INTEGRAL_MAX_BITS 64
+// CHECK: #define _M_ARM 7
+// CHECK: #define _M_ARMT _M_ARM
+// CHECK: #define _M_ARM_FP 31
+// CHECK: #define _M_ARM_NT 1
+// CHECK: #define _M_THUMB _M_ARM
+// CHECK: #define _WIN32 1
+
+// CHECK: #define __ARM_PCS 1
+// CHECK: #define __ARM_PCS_VFP 1
+// CHECK: #define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__
+// CHECK: #define __SIZEOF_DOUBLE__ 8
+// CHECK: #define __SIZEOF_FLOAT__ 4
+// CHECK: #define __SIZEOF_INT__ 4
+// CHECK: #define __SIZEOF_LONG_DOUBLE__ 8
+// CHECK: #define __SIZEOF_LONG_LONG__ 8
+// CHECK: #define __SIZEOF_LONG__ 4
+// CHECK: #define __SIZEOF_POINTER__ 4
+// CHECK: #define __SIZEOF_PTRDIFF_T__ 4
+// CHECK: #define __SIZEOF_SHORT__ 2
+// CHECK: #define __SIZEOF_SIZE_T__ 4
+// CHECK: #define __SIZEOF_WCHAR_T__ 2
+// CHECK: #define __SIZEOF_WINT_T__ 4
+
+// CHECK-NOT: __THUMB_INTERWORK__
+// CHECK-NOT: __ARM_EABI__
+// CHECK-NOT: _CHAR_UNSIGNED
+
+// CHECK-UNSIGNED-CHAR: #define _CHAR_UNSIGNED 1
OpenPOWER on IntegriCloud