aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-03-14 01:17:52 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-03-14 01:17:52 +0000
commit5aed86caa05c0ccfd5d493d619403a2593174001 (patch)
treed59ee23b286265b54a1a60b899bba69143d94aad
parent167174518cc9bdd84b27bfad581028f4092cd68c (diff)
-arch is a darwin-only feature, use -target instead to make the linux buildbots happy again.
Also check the error message. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152694 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Driver/altivec.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/test/Driver/altivec.cpp b/test/Driver/altivec.cpp
index cad198210a..86d3cf2b6e 100644
--- a/test/Driver/altivec.cpp
+++ b/test/Driver/altivec.cpp
@@ -1,12 +1,14 @@
// Check that we error when -faltivec is specified on non-ppc platforms.
-// RUN: %clang -arch ppc -faltivec -fsyntax-only %s
-// RUN: %clang -arch ppc64 -faltivec -fsyntax-only %s
+// RUN: %clang -target powerpc-apple-darwin -faltivec -fsyntax-only %s
+// RUN: %clang -target powerpc64-linux-gnu -faltivec -fsyntax-only %s
-// RUN: not %clang -arch i386 -faltivec -fsyntax-only %s
-// RUN: not %clang -arch x86_64 -faltivec -fsyntax-only %s
-// RUN: not %clang -arch armv6 -faltivec -fsyntax-only %s
-// RUN: not %clang -arch armv7 -faltivec -fsyntax-only %s
-// RUN: not %clang -arch mips -faltivec -fsyntax-only %s
-// RUN: not %clang -arch mips64 -faltivec -fsyntax-only %s
-// RUN: not %clang -arch sparc -faltivec -fsyntax-only %s
+// RUN: %clang -target i386-pc-win32 -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
+// RUN: %clang -target x86_64-unknown-freebsd -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
+// RUN: %clang -target armv6-apple-darwin -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
+// RUN: %clang -target armv7-apple-darwin -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
+// RUN: %clang -target mips-linux-gnu -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
+// RUN: %clang -target mips64-linux-gnu -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
+// RUN: %clang -target sparc-unknown-solaris -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
+
+// CHECK: invalid argument '-faltivec' only allowed with 'ppc/ppc64'