diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-03-14 01:17:52 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-03-14 01:17:52 +0000 |
commit | 91b9ac8ae9ad30c334aca8073dfb1cab86bf8889 (patch) | |
tree | 50cfa77bd04bb2f7c3acc905190c3b29252250df | |
parent | 37cb6555f0017b9f49ae44b9970cb62eef16ca69 (diff) | |
download | bcm5719-llvm-91b9ac8ae9ad30c334aca8073dfb1cab86bf8889.tar.gz bcm5719-llvm-91b9ac8ae9ad30c334aca8073dfb1cab86bf8889.zip |
-arch is a darwin-only feature, use -target instead to make the linux buildbots happy again.
Also check the error message.
llvm-svn: 152694
-rw-r--r-- | clang/test/Driver/altivec.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/clang/test/Driver/altivec.cpp b/clang/test/Driver/altivec.cpp index cad198210a0..86d3cf2b6ef 100644 --- a/clang/test/Driver/altivec.cpp +++ b/clang/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' |