[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)
commit941a3244ffe0fbed51f977ace7358fbf5c924479
tree8d89b02538508a320e03e9c4559145560fad74c2
parent87982a1e9b42b18e803a2dda3a79ff665b7b2243
[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.

llvm-svn: 220173
llvm/test/CodeGen/PowerPC/2007-09-08-unaligned.ll
llvm/test/CodeGen/PowerPC/2012-10-12-bitcast.ll
llvm/test/CodeGen/PowerPC/buildvec_canonicalize.ll
llvm/test/CodeGen/PowerPC/fabs.ll
llvm/test/CodeGen/PowerPC/fnabs.ll
llvm/test/CodeGen/PowerPC/fp-branch.ll
llvm/test/CodeGen/PowerPC/fp_to_uint.ll
llvm/test/CodeGen/PowerPC/i64_fp.ll
llvm/test/CodeGen/PowerPC/unsafe-math.ll
llvm/test/CodeGen/PowerPC/vec_mul.ll
llvm/test/CodeGen/PowerPC/vrspill.ll