summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/init.c
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2017-03-25 02:29:18 +0000
committerEric Christopher <echristo@gmail.com>2017-03-25 02:29:18 +0000
commitb70819e6a29ce4134e3f7ae363fb16c311f50959 (patch)
treefc1541a8b4a62754e5bfdfc1d6b1b134752a1dfd /clang/test/Preprocessor/init.c
parent14834c3e3de8caea7876648e41464952b4d81b42 (diff)
downloadbcm5719-llvm-b70819e6a29ce4134e3f7ae363fb16c311f50959.tar.gz
bcm5719-llvm-b70819e6a29ce4134e3f7ae363fb16c311f50959.zip
Add preprocessor defines for a bare powerpc64le triple/cpu.
The le triple didn't exist until power8, so use that as a default (this also matches what gcc does). llvm-svn: 298759
Diffstat (limited to 'clang/test/Preprocessor/init.c')
-rw-r--r--clang/test/Preprocessor/init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/init.c b/clang/test/Preprocessor/init.c
index 14d487559a4..9d6eb70fb2a 100644
--- a/clang/test/Preprocessor/init.c
+++ b/clang/test/Preprocessor/init.c
@@ -6093,6 +6093,9 @@
//
// RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc64-none-none -target-cpu power8 -fno-signed-char < /dev/null | FileCheck -match-full-lines -check-prefix PPCPOWER8 %s
//
+// ppc64le also defaults to power8.
+// RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc64le-none-none -target-cpu ppc64le -fno-signed-char < /dev/null | FileCheck -match-full-lines -check-prefix PPCPOWER8 %s
+//
// PPCPOWER8:#define _ARCH_PPC 1
// PPCPOWER8:#define _ARCH_PPC64 1
// PPCPOWER8:#define _ARCH_PPCGR 1
OpenPOWER on IntegriCloud