diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-07-09 18:34:21 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-07-09 18:34:21 +0000 |
commit | f79470583759d20c20268711e6111461aefa8461 (patch) | |
tree | 051ebd4e10d734634e720f9df563953853ae93a1 | |
parent | d57aa886f06215da3a1bffecf6bfb7ad92075e80 (diff) |
Tests: check for target availability for target-specific tests.
Lots of tests are using an explicit target triple w/o first checking that the
target is actually available. Add a REQUIRES clause to a bunch of them. This should
hopefully unbreak bots which don't configure w/ all targets enabled.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159949 91177308-0d34-0410-b5e6-96231b3b80d8
33 files changed, 35 insertions, 2 deletions
diff --git a/test/CodeGen/2009-02-13-zerosize-union-field-ppc.c b/test/CodeGen/2009-02-13-zerosize-union-field-ppc.c index 8787bd453e..2bcc7c3933 100644 --- a/test/CodeGen/2009-02-13-zerosize-union-field-ppc.c +++ b/test/CodeGen/2009-02-13-zerosize-union-field-ppc.c @@ -1,3 +1,4 @@ +// REQUIRES: ppc32-registered-target // RUN: %clang_cc1 %s -triple powerpc-pc-linux -emit-llvm -o - | grep {i32 32} | count 3 // XFAIL: * // Every printf has 'i32 0' for the GEP of the string; no point counting those. diff --git a/test/CodeGen/2010-05-26-AsmSideEffect.c b/test/CodeGen/2010-05-26-AsmSideEffect.c index 7dd86aeb54..8ae7cb5354 100644 --- a/test/CodeGen/2010-05-26-AsmSideEffect.c +++ b/test/CodeGen/2010-05-26-AsmSideEffect.c @@ -1,3 +1,4 @@ +// REQUIRES: arm-registered-target // RUN: %clang_cc1 %s -emit-llvm -triple arm-apple-darwin -o - | FileCheck %s // Radar 8026855 diff --git a/test/CodeGen/altivec.c b/test/CodeGen/altivec.c index 29823031b5..6c924a7fe3 100644 --- a/test/CodeGen/altivec.c +++ b/test/CodeGen/altivec.c @@ -1,3 +1,4 @@ +// REQUIRES: ppc32-registered-target // RUN: %clang_cc1 -faltivec -triple powerpc-unknown-unknown -emit-llvm %s -o - | FileCheck %s // Check initialization diff --git a/test/CodeGen/arm-aapcs-vfp.c b/test/CodeGen/arm-aapcs-vfp.c index 017c14524e..45204ed2b9 100644 --- a/test/CodeGen/arm-aapcs-vfp.c +++ b/test/CodeGen/arm-aapcs-vfp.c @@ -1,3 +1,4 @@ +// REQUIRES: arm-registered-target // RUN: %clang_cc1 -triple thumbv7-apple-darwin9 \ // RUN: -target-abi aapcs \ // RUN: -target-cpu cortex-a8 \ diff --git a/test/CodeGen/arm-aapcs-zerolength-bitfield.c b/test/CodeGen/arm-aapcs-zerolength-bitfield.c index 9fece197fa..140ff6c424 100644 --- a/test/CodeGen/arm-aapcs-zerolength-bitfield.c +++ b/test/CodeGen/arm-aapcs-zerolength-bitfield.c @@ -1,3 +1,4 @@ +// REQUIRES: arm-registered-target // RUN: %clang_cc1 -target-abi aapcs -triple armv7-apple-darwin10 %s -verify #include <stddef.h> diff --git a/test/CodeGen/arm-apcs-zerolength-bitfield.c b/test/CodeGen/arm-apcs-zerolength-bitfield.c index 3f94525394..049ffae4dc 100644 --- a/test/CodeGen/arm-apcs-zerolength-bitfield.c +++ b/test/CodeGen/arm-apcs-zerolength-bitfield.c @@ -1,3 +1,4 @@ +// REQUIRES: arm-registered-target // RUN: %clang_cc1 -target-abi apcs-gnu -triple armv7-apple-darwin10 %s -verify // // Note: gcc forces the alignment to 4 bytes, regardless of the type of the diff --git a/test/CodeGen/arm-arguments.c b/test/CodeGen/arm-arguments.c index 4686d4ab95..1ca9a78e86 100644 --- a/test/CodeGen/arm-arguments.c +++ b/test/CodeGen/arm-arguments.c @@ -1,3 +1,4 @@ +// REQUIRES: arm-registered-target // RUN: %clang_cc1 -triple armv7-apple-darwin9 -target-abi apcs-gnu -emit-llvm -w -o - %s | FileCheck -check-prefix=APCS-GNU %s // RUN: %clang_cc1 -triple armv7-apple-darwin9 -target-abi aapcs -emit-llvm -w -o - %s | FileCheck -check-prefix=AAPCS %s diff --git a/test/CodeGen/arm-asm-variable.c b/test/CodeGen/arm-asm-variable.c index 865d1971e8..f874269b0a 100644 --- a/test/CodeGen/arm-asm-variable.c +++ b/test/CodeGen/arm-asm-variable.c @@ -1,3 +1,4 @@ +// REQUIRES: arm-registered-target // RUN: %clang_cc1 -triple armv7-apple-darwin9 -emit-llvm -w -o - %s | FileCheck %s typedef long long int64_t; diff --git a/test/CodeGen/arm-asm.c b/test/CodeGen/arm-asm.c index 9b1082a198..bd2fe11993 100644 --- a/test/CodeGen/arm-asm.c +++ b/test/CodeGen/arm-asm.c @@ -1,3 +1,4 @@ +// REQUIRES: arm-registered-target // RUN: %clang_cc1 -triple thumb %s -emit-llvm -o - | FileCheck %s int t1() { static float k = 1.0f; diff --git a/test/CodeGen/arm-cc.c b/test/CodeGen/arm-cc.c index 74eecc755f..80ebe687c1 100644 --- a/test/CodeGen/arm-cc.c +++ b/test/CodeGen/arm-cc.c @@ -1,3 +1,4 @@ +// REQUIRES: arm-registered-target // RUN: %clang_cc1 -triple armv7-apple-darwin9 -target-abi apcs-gnu -emit-llvm -w -o - %s | FileCheck -check-prefix=DARWIN-APCS %s // RUN: %clang_cc1 -triple armv7-apple-darwin9 -target-abi aapcs -emit-llvm -w -o - %s | FileCheck -check-prefix=DARWIN-AAPCS %s // RUN: %clang_cc1 -triple arm-none-linux-gnueabi -target-abi apcs-gnu -emit-llvm -w -o - %s | FileCheck -check-prefix=LINUX-APCS %s diff --git a/test/CodeGen/arm-clear.c b/test/CodeGen/arm-clear.c index eda64ce99e..51506dfed1 100644 --- a/test/CodeGen/arm-clear.c +++ b/test/CodeGen/arm-clear.c @@ -1,3 +1,4 @@ +// REQUIRES: arm-registered-target // RUN: %clang_cc1 -triple armv7-apple-darwin9 -emit-llvm -w -o - %s | FileCheck %s void clear0(void *ptr) { diff --git a/test/CodeGen/arm-homogenous.c b/test/CodeGen/arm-homogenous.c index eb3d5a6bd6..b8d046af97 100644 --- a/test/CodeGen/arm-homogenous.c +++ b/test/CodeGen/arm-homogenous.c @@ -1,3 +1,4 @@ +// REQUIRES: arm-registered-target // RUN: %clang_cc1 -triple armv7---eabi -target-abi aapcs -mfloat-abi hard -emit-llvm %s -o - | FileCheck %s typedef long long int64_t; @@ -157,4 +158,4 @@ void test_return_union_with_struct_with_fundamental_elems(void) { // FIXME: Tests necessary: // - Vectors -// - C++ stuff
\ No newline at end of file +// - C++ stuff diff --git a/test/CodeGen/arm-inline-asm.c b/test/CodeGen/arm-inline-asm.c index 0152b050fd..95bb507c27 100644 --- a/test/CodeGen/arm-inline-asm.c +++ b/test/CodeGen/arm-inline-asm.c @@ -1,3 +1,4 @@ +// REQUIRES: arm-registered-target // RUN: %clang_cc1 -triple armv7-apple-darwin9 -emit-llvm -w -o - %s | FileCheck %s void t1 (void *f, int g) { diff --git a/test/CodeGen/arm-pcs.c b/test/CodeGen/arm-pcs.c index d722f84ceb..fc658c3bef 100644 --- a/test/CodeGen/arm-pcs.c +++ b/test/CodeGen/arm-pcs.c @@ -1,3 +1,4 @@ +// REQUIRES: arm-registered-target // RUN: %clang_cc1 -triple arm-none-linux-gnueabi -emit-llvm -w -o - < %s | FileCheck %s typedef int __attribute__((pcs("aapcs"))) (*aapcs_fn)(void); typedef int __attribute__((pcs("aapcs-vfp"))) (*aapcs_vfp_fn)(void); diff --git a/test/CodeGen/arm-vaarg-align.c b/test/CodeGen/arm-vaarg-align.c index 1187c02291..2270c8b4f9 100644 --- a/test/CodeGen/arm-vaarg-align.c +++ b/test/CodeGen/arm-vaarg-align.c @@ -1,3 +1,4 @@ +// REQUIRES: arm-registered-target // RUN: %clang_cc1 -triple arm -target-abi aapcs %s -emit-llvm -o - | FileCheck -check-prefix=AAPCS %s // RUN: %clang_cc1 -triple arm -target-abi apcs-gnu %s -emit-llvm -o - | FileCheck -check-prefix=APCS-GNU %s /* diff --git a/test/CodeGen/arm-vector-align.c b/test/CodeGen/arm-vector-align.c index b481a0c97f..9e1ae5da11 100644 --- a/test/CodeGen/arm-vector-align.c +++ b/test/CodeGen/arm-vector-align.c @@ -1,3 +1,4 @@ +// REQUIRES: arm-registered-target // RUN: %clang_cc1 -triple thumbv7-apple-darwin \ // RUN: -target-abi apcs-gnu \ // RUN: -target-cpu cortex-a8 \ diff --git a/test/CodeGen/arm-vector-arguments.c b/test/CodeGen/arm-vector-arguments.c index 6bfb2f48a7..9bdddb7269 100644 --- a/test/CodeGen/arm-vector-arguments.c +++ b/test/CodeGen/arm-vector-arguments.c @@ -1,3 +1,4 @@ +// REQUIRES: arm-registered-target // RUN: %clang_cc1 -triple thumbv7-apple-darwin9 \ // RUN: -target-abi apcs-gnu \ // RUN: -target-cpu cortex-a8 \ diff --git a/test/CodeGen/asm_arm.c b/test/CodeGen/asm_arm.c index 633bf5569d..4b764b7d36 100644 --- a/test/CodeGen/asm_arm.c +++ b/test/CodeGen/asm_arm.c @@ -1,3 +1,4 @@ +// REQUIRES: arm-registered-target // RUN: %clang_cc1 -triple armv6-unknown-unknown -emit-llvm -o - %s | FileCheck %s void test0(void) { diff --git a/test/CodeGen/bool_test.c b/test/CodeGen/bool_test.c index ffaaef8123..715f8467b5 100644 --- a/test/CodeGen/bool_test.c +++ b/test/CodeGen/bool_test.c @@ -1,3 +1,4 @@ +// REQUIRES: ppc32-registered-target // RUN: %clang_cc1 -triple powerpc-apple-darwin -emit-llvm -o - %s| FileCheck -check-prefix=DARWINPPC-CHECK %s int boolsize = sizeof(_Bool); diff --git a/test/CodeGen/builtin-attributes.c b/test/CodeGen/builtin-attributes.c index 3781eba266..1d3a94376d 100644 --- a/test/CodeGen/builtin-attributes.c +++ b/test/CodeGen/builtin-attributes.c @@ -1,3 +1,4 @@ +// REQUIRES: arm-registered-target // RUN: %clang_cc1 -triple arm-unknown-linux-gnueabi -emit-llvm -o - %s | FileCheck %s // CHECK: declare i32 @printf(i8*, ...) diff --git a/test/CodeGen/builtins-arm.c b/test/CodeGen/builtins-arm.c index 09df1ef42c..3611650c38 100644 --- a/test/CodeGen/builtins-arm.c +++ b/test/CodeGen/builtins-arm.c @@ -1,3 +1,4 @@ +// REQUIRES: arm-registered-target // RUN: %clang_cc1 -Wall -Werror -triple thumbv7-eabi -target-cpu cortex-a8 -O3 -emit-llvm -o - %s | FileCheck %s void *f0() diff --git a/test/CodeGen/builtins-mips-args.c b/test/CodeGen/builtins-mips-args.c index 4bc6f248c1..a961b36a95 100644 --- a/test/CodeGen/builtins-mips-args.c +++ b/test/CodeGen/builtins-mips-args.c @@ -1,3 +1,4 @@ +// REQUIRES: mips-registered-target // RUN: %clang_cc1 -triple mips-unknown-linux-gnu -fsyntax-only -verify %s void foo() { diff --git a/test/CodeGen/builtins-mips.c b/test/CodeGen/builtins-mips.c index 8a848afcbd..a341462f59 100644 --- a/test/CodeGen/builtins-mips.c +++ b/test/CodeGen/builtins-mips.c @@ -1,3 +1,4 @@ +// REQUIRES: mips-registered-target // RUN: %clang_cc1 -triple mips-unknown-linux-gnu -emit-llvm -o %t %s // RUN: not grep __builtin %t diff --git a/test/CodeGen/builtins-ppc-altivec.c b/test/CodeGen/builtins-ppc-altivec.c index b12ff014c1..e885cb03aa 100644 --- a/test/CodeGen/builtins-ppc-altivec.c +++ b/test/CodeGen/builtins-ppc-altivec.c @@ -1,3 +1,4 @@ +// REQUIRES: ppc32-registered-target // RUN: %clang_cc1 -faltivec -triple powerpc-unknown-unknown -emit-llvm %s -o - | FileCheck %s vector bool char vbc = { 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0 }; diff --git a/test/CodeGen/fp16-ops.c b/test/CodeGen/fp16-ops.c index cbbfb884df..e506513306 100644 --- a/test/CodeGen/fp16-ops.c +++ b/test/CodeGen/fp16-ops.c @@ -1,3 +1,4 @@ +// REQUIRES: arm-registered-target // RUN: %clang_cc1 -emit-llvm -o - -triple arm-none-linux-gnueabi %s | FileCheck %s typedef unsigned cond_t; diff --git a/test/CodeGen/no-common.c b/test/CodeGen/no-common.c index 7beefc7b69..8d2c4d7d74 100644 --- a/test/CodeGen/no-common.c +++ b/test/CodeGen/no-common.c @@ -12,4 +12,4 @@ fn_t ABC __attribute__ ((nocommon)); // CHECK-DEFAULT: @y = common global // CHECK-NOCOMMON: @y = common global -int y __attribute__((common));
\ No newline at end of file +int y __attribute__((common)); diff --git a/test/CodeGen/powerpc_types.c b/test/CodeGen/powerpc_types.c index b7d0f5de49..b4de318188 100644 --- a/test/CodeGen/powerpc_types.c +++ b/test/CodeGen/powerpc_types.c @@ -1,3 +1,4 @@ +// REQUIRES: ppc32-registered-target // RUN: %clang_cc1 -triple powerpc-unknown-freebsd -emit-llvm -o - %s| FileCheck -check-prefix=SVR4-CHECK %s #include <stdarg.h> diff --git a/test/CodeGen/pr5406.c b/test/CodeGen/pr5406.c index da74d6b64f..2d198220a7 100644 --- a/test/CodeGen/pr5406.c +++ b/test/CodeGen/pr5406.c @@ -1,3 +1,4 @@ +// REQUIRES: arm-registered-target // RUN: %clang_cc1 %s -emit-llvm -triple arm-apple-darwin -o - | FileCheck %s // PR 5406 diff --git a/test/CodeGen/struct-init.c b/test/CodeGen/struct-init.c index 6247729c17..5273138e4e 100644 --- a/test/CodeGen/struct-init.c +++ b/test/CodeGen/struct-init.c @@ -1,3 +1,4 @@ +// REQUIRES: arm-registered-target // RUN: %clang_cc1 -S -triple armv7-apple-darwin %s -emit-llvm -o - | FileCheck %s typedef struct _zend_ini_entry zend_ini_entry; diff --git a/test/CodeGen/struct-matching-constraint.c b/test/CodeGen/struct-matching-constraint.c index 40c444f2b4..bdd11c8b90 100644 --- a/test/CodeGen/struct-matching-constraint.c +++ b/test/CodeGen/struct-matching-constraint.c @@ -1,3 +1,4 @@ +// REQUIRES: arm-registered-target // RUN: %clang_cc1 -S -emit-llvm -triple armv7a-apple-darwin %s -o /dev/null typedef unsigned short uint16_t; typedef __attribute__((neon_vector_type(8))) uint16_t uint16x8_t; diff --git a/test/CodeGen/vld_dup.c b/test/CodeGen/vld_dup.c index e1d63cca25..2bc251989b 100644 --- a/test/CodeGen/vld_dup.c +++ b/test/CodeGen/vld_dup.c @@ -1,3 +1,4 @@ +// REQUIRES: arm-registered-target // RUN: %clang_cc1 -triple armv7a-linux-gnueabi \ // RUN: -target-cpu cortex-a8 \ // RUN: -emit-llvm -O0 -o - %s | FileCheck %s diff --git a/test/Driver/mips-features.c b/test/Driver/mips-features.c index e5f735e571..5be2683188 100644 --- a/test/Driver/mips-features.c +++ b/test/Driver/mips-features.c @@ -1,3 +1,5 @@ +// REQUIRES: mips-registered-target +// // Check handling MIPS specific features options. // // -mips16 diff --git a/test/Driver/mips-float.c b/test/Driver/mips-float.c index c9e107f593..95eb0025cc 100644 --- a/test/Driver/mips-float.c +++ b/test/Driver/mips-float.c @@ -1,3 +1,4 @@ +// REQUIRES: mips-registered-target // Check handling -mhard-float / -msoft-float / -mfloat-abi options // when build for MIPS platforms. // |