blob: f6a55bcd39f84297cc52e7448f857442b4e036ef [file] [log] [blame]
Eric Christophera776ed12017-03-21 22:06:18 +00001// Tests that clang does not crash with invalid architectures in target triples.
2//
3// RUN: not %clang -target powerpc64le-linux-gnu -faltivec -o %t.o %s 2> %t.err
4// RUN: FileCheck --input-file=%t.err --check-prefix=CHECK-NOFALTIVEC %s
5// CHECK-NOFALTIVEC: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
6//
7// RUN: not %clang -target powerpc64le-linux-gnu -fno-altivec -o %t.o %s 2> %t.err
8// RUN: FileCheck --input-file=%t.err --check-prefix=CHECK-NOFNOALTIVEC %s
9// CHECK-NOFNOALTIVEC: error: the clang compiler does not support 'fno-altivec', please use -mno-altivec
10