diff options
author | Eric Christopher <echristo@gmail.com> | 2017-03-25 02:29:18 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2017-03-25 02:29:18 +0000 |
commit | b70819e6a29ce4134e3f7ae363fb16c311f50959 (patch) | |
tree | fc1541a8b4a62754e5bfdfc1d6b1b134752a1dfd /clang/test/Preprocessor/init.c | |
parent | 14834c3e3de8caea7876648e41464952b4d81b42 (diff) | |
download | bcm5719-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.c | 3 |
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 |