blob: a8936360a3dbc50e36320cd2ab6061750a16d7a4 [file] [log] [blame]
Chad Rosier1cdbfd32012-03-13 23:48:50 +00001// Check that we error when -faltivec is specified on non-ppc platforms.
Chad Rosier4574c3d2012-03-13 23:45:51 +00002
Chad Rosier8202fb82012-04-27 19:51:11 +00003// RUN: %clang -ccc-clang-archs powerpc -target powerpc-unk-unk -faltivec -fsyntax-only %s
Daniel Dunbarae7e9392012-04-09 20:40:11 +00004// RUN: %clang -ccc-clang-archs powerpc64 -target powerpc64-linux-gnu -faltivec -fsyntax-only %s
Hal Finkelc4033f32012-06-17 02:29:23 +00005// RUN: %clang -ccc-clang-archs powerpc64 -target powerpc64-linux-gnu -maltivec -fsyntax-only %s
Chad Rosier4574c3d2012-03-13 23:45:51 +00006
Benjamin Kramer5aed86c2012-03-14 01:17:52 +00007// RUN: %clang -target i386-pc-win32 -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
8// RUN: %clang -target x86_64-unknown-freebsd -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
9// RUN: %clang -target armv6-apple-darwin -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
10// RUN: %clang -target armv7-apple-darwin -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
Daniel Dunbarae7e9392012-04-09 20:40:11 +000011// RUN: %clang -ccc-clang-archs mips -target mips-linux-gnu -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
12// RUN: %clang -ccc-clang-archs mips64 -target mips64-linux-gnu -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
13// RUN: %clang -ccc-clang-archs sparc -target sparc-unknown-solaris -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
Benjamin Kramer5aed86c2012-03-14 01:17:52 +000014
15// CHECK: invalid argument '-faltivec' only allowed with 'ppc/ppc64'