[cfe-commits] r152694 - /cfe/trunk/test/Driver/altivec.cpp

Benjamin Kramer benny.kra at googlemail.com
Tue Mar 13 18:17:52 PDT 2012


Author: d0k
Date: Tue Mar 13 20:17:52 2012
New Revision: 152694

URL: http://llvm.org/viewvc/llvm-project?rev=152694&view=rev
Log:
-arch is a darwin-only feature, use -target instead to make the linux buildbots happy again.

Also check the error message.

Modified:
    cfe/trunk/test/Driver/altivec.cpp

Modified: cfe/trunk/test/Driver/altivec.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/altivec.cpp?rev=152694&r1=152693&r2=152694&view=diff
==============================================================================
--- cfe/trunk/test/Driver/altivec.cpp (original)
+++ cfe/trunk/test/Driver/altivec.cpp Tue Mar 13 20:17:52 2012
@@ -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'





More information about the cfe-commits mailing list