]> granicus.if.org Git - clang/commit
[PowerPC] Add feature for Power8 vector extensions
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Fri, 10 Oct 2014 15:09:43 +0000 (15:09 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Fri, 10 Oct 2014 15:09:43 +0000 (15:09 +0000)
commite30a0772b776ac9dd48a7797ea585f9c2337ba99
treefc08cbb124a3b01adbe7a41629904d57b8cfc23e
parent8c59824a45c275452a5fd74a83dee0f5fb7a89cf
[PowerPC] Add feature for Power8 vector extensions

The current VSX feature for PowerPC specifies availability of the VSX
instructions added with the 2.06 architecture version.  With 2.07, the
architecture adds new instructions to both the Category:Vector and
Category:VSX instruction sets.  Additionally, unaligned vector storage
operations have improved performance.

This patch adds a feature to provide access to the new instructions
and performance capabilities of Power8.  For compatibility with GCC,
the feature is controlled via a new -mpower8-vector switch, and the
feature causes the __POWER8_VECTOR__ builtin define to be generated by
the preprocessor.

There is a companion patch for llvm being committed at the same time.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219502 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.td
lib/Basic/Targets.cpp
test/Driver/ppc-features.cpp
test/Preprocessor/predefined-arch-macros.c