[PowerPC] Clean up -mattr=+vsx tests to always specify -mcpu
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Sun, 19 Oct 2014 21:29:21 +0000 (21:29 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Sun, 19 Oct 2014 21:29:21 +0000 (21:29 +0000)
commit551a3d7b56653f4f69e2b757a4df9189ce796545
treef00a9b29f6619541e61a6dcfaf06da180bad0861
parent1d142d4d4761937f36687f075090b94520e01f8e
[PowerPC] Clean up -mattr=+vsx tests to always specify -mcpu

We recently discovered an issue that reinforces what a good idea it is
to always specify -mcpu in our code generation tests, particularly for
-mattr=+vsx.  This patch ensures that all tests that specify
-mattr=+vsx also specify -mcpu=pwr7 or -mcpu=pwr8, as appropriate.

Some of the uses of -mattr=+vsx added recently don't make much sense
(when specified for -mtriple=powerpc-apple-darwin8 or -march=ppc32,
for example).  For cases like this I've just removed the extra VSX
test commands; there's enough coverage without them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220173 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/PowerPC/2007-09-08-unaligned.ll
test/CodeGen/PowerPC/2012-10-12-bitcast.ll
test/CodeGen/PowerPC/buildvec_canonicalize.ll
test/CodeGen/PowerPC/fabs.ll
test/CodeGen/PowerPC/fnabs.ll
test/CodeGen/PowerPC/fp-branch.ll
test/CodeGen/PowerPC/fp_to_uint.ll
test/CodeGen/PowerPC/i64_fp.ll
test/CodeGen/PowerPC/unsafe-math.ll
test/CodeGen/PowerPC/vec_mul.ll
test/CodeGen/PowerPC/vrspill.ll