]> granicus.if.org Git - clang/commit
Enable -fno-altivec, -mno-altivec for PowerPC.
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Fri, 1 Feb 2013 02:14:03 +0000 (02:14 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Fri, 1 Feb 2013 02:14:03 +0000 (02:14 +0000)
commit199402b9e081dedc28e19ab6e727470b34f2f64d
tree5346e9860482fe16144fc18355e74f56ad33b1d8
parenta31f65b10e61ca8f2f427b1df176c10ea8a0efa2
Enable -fno-altivec, -mno-altivec for PowerPC.

Introduces these negation forms explicitly and uses them to control a new
"altivec" target feature for PowerPC.  This allows avoiding generating
Altivec instructions on processors that support Altivec.

The new test case verifies that the Altivec "lvx" instruction is not
used when -fno-altivec is present on the command line.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174140 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.td
lib/Basic/Targets.cpp
lib/Driver/Tools.cpp
test/CodeGen/ppc-no-altivec.c [new file with mode: 0644]