summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/DeclSpec.cpp
diff options
context:
space:
mode:
authorKit Barton <kbarton@ca.ibm.com>2015-03-11 15:57:19 +0000
committerKit Barton <kbarton@ca.ibm.com>2015-03-11 15:57:19 +0000
commit8553bec91171eae68d2319a3c1212bdfa3f0d7d2 (patch)
tree1eba5ea090711ec30f5f7004a4e4bd26a59b8c20 /clang/lib/Sema/DeclSpec.cpp
parent90c2db2a832f7f4559c01c9ed2153b7350b0bd2a (diff)
downloadbcm5719-llvm-8553bec91171eae68d2319a3c1212bdfa3f0d7d2.tar.gz
bcm5719-llvm-8553bec91171eae68d2319a3c1212bdfa3f0d7d2.zip
Add builtins for the 64-bit vector integer arithmetic instructions added in POWER8.
These are the Clang-related changes for the instructions added to LLVM in http://reviews.llvm.org/D7959. Phabricator review: http://reviews.llvm.org/D8041 llvm-svn: 231931
Diffstat (limited to 'clang/lib/Sema/DeclSpec.cpp')
-rw-r--r--clang/lib/Sema/DeclSpec.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Sema/DeclSpec.cpp b/clang/lib/Sema/DeclSpec.cpp
index f0e6c7b89e6..5e349bc2ad2 100644
--- a/clang/lib/Sema/DeclSpec.cpp
+++ b/clang/lib/Sema/DeclSpec.cpp
@@ -989,7 +989,9 @@ void DeclSpec::Finish(DiagnosticsEngine &D, Preprocessor &PP, const PrintingPoli
<< getSpecifierName((TSW)TypeSpecWidth);
// vector bool long long requires VSX support.
- if ((TypeSpecWidth == TSW_longlong) && (!PP.getTargetInfo().hasFeature("vsx")))
+ if ((TypeSpecWidth == TSW_longlong) &&
+ (!PP.getTargetInfo().hasFeature("vsx")) &&
+ (!PP.getTargetInfo().hasFeature("power8-vector")))
Diag(D, TSTLoc, diag::err_invalid_vector_long_long_decl_spec);
// Elements of vector bool are interpreted as unsigned. (PIM 2.1)
OpenPOWER on IntegriCloud