summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2014-08-08 23:46:28 +0000
committerBob Wilson <bob.wilson@apple.com>2014-08-08 23:46:28 +0000
commita2acb1e84effd2794aa7515261806f286b86432f (patch)
tree7f895451d96055b5a81a3b2aed7603ce08b52e55 /clang/test/Preprocessor
parent7400e596a39ce5252056a9f63113c42b2c172d3c (diff)
downloadbcm5719-llvm-a2acb1e84effd2794aa7515261806f286b86432f.tar.gz
bcm5719-llvm-a2acb1e84effd2794aa7515261806f286b86432f.zip
Add predefined macros to identify x86_64h architectures.
Patch by Jim Grosbach. llvm-svn: 215260
Diffstat (limited to 'clang/test/Preprocessor')
-rw-r--r--clang/test/Preprocessor/init.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/init.c b/clang/test/Preprocessor/init.c
index edf6537700d..67ed838e4af 100644
--- a/clang/test/Preprocessor/init.c
+++ b/clang/test/Preprocessor/init.c
@@ -6230,6 +6230,13 @@
// X86_64:#define __x86_64 1
// X86_64:#define __x86_64__ 1
//
+// RUN: %clang_cc1 -E -dM -ffreestanding -triple=x86_64h-none-none < /dev/null | FileCheck -check-prefix X86_64H %s
+//
+// X86_64H:#define __x86_64 1
+// X86_64H:#define __x86_64__ 1
+// X86_64H:#define __x86_64h 1
+// X86_64H:#define __x86_64h__ 1
+
// RUN: %clang_cc1 -E -dM -ffreestanding -triple=x86_64-none-none-gnux32 < /dev/null | FileCheck -check-prefix X32 %s
//
// X32:#define _ILP32 1
OpenPOWER on IntegriCloud