зеркало из https://github.com/microsoft/clang-1.git
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
This commit is contained in:
Родитель
d57aa886f0
Коммит
f794705837
|
@ -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.
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// REQUIRES: arm-registered-target
|
||||
// RUN: %clang_cc1 %s -emit-llvm -triple arm-apple-darwin -o - | FileCheck %s
|
||||
// Radar 8026855
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// REQUIRES: ppc32-registered-target
|
||||
// RUN: %clang_cc1 -faltivec -triple powerpc-unknown-unknown -emit-llvm %s -o - | FileCheck %s
|
||||
|
||||
// Check initialization
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// REQUIRES: arm-registered-target
|
||||
// RUN: %clang_cc1 -triple thumbv7-apple-darwin9 \
|
||||
// RUN: -target-abi aapcs \
|
||||
// RUN: -target-cpu cortex-a8 \
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// REQUIRES: arm-registered-target
|
||||
// RUN: %clang_cc1 -target-abi aapcs -triple armv7-apple-darwin10 %s -verify
|
||||
|
||||
#include <stddef.h>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
/*
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// REQUIRES: arm-registered-target
|
||||
// RUN: %clang_cc1 -triple armv6-unknown-unknown -emit-llvm -o - %s | FileCheck %s
|
||||
|
||||
void test0(void) {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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*, ...)
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// REQUIRES: mips-registered-target
|
||||
// RUN: %clang_cc1 -triple mips-unknown-linux-gnu -fsyntax-only -verify %s
|
||||
|
||||
void foo() {
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 };
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// REQUIRES: arm-registered-target
|
||||
// RUN: %clang_cc1 %s -emit-llvm -triple arm-apple-darwin -o - | FileCheck %s
|
||||
// PR 5406
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// REQUIRES: mips-registered-target
|
||||
//
|
||||
// Check handling MIPS specific features options.
|
||||
//
|
||||
// -mips16
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// REQUIRES: mips-registered-target
|
||||
// Check handling -mhard-float / -msoft-float / -mfloat-abi options
|
||||
// when build for MIPS platforms.
|
||||
//
|
||||
|
|
Загрузка…
Ссылка в новой задаче