[tests] Specify the dependence to NVPTX backend for Polly ACC test cases

Some Polly ACC test cases fail without a working NVPTX backend. We explicitly
specify this dependence in REQUIRES. Alternatively, we could have only marked
polly-acc as supported in case the NVPTX backend is available, but as we might
use other backends in the future, this does not seem to be the best choice.

For this to work, we also need to make the 'targets_to_build' information
available.

Suggested-by: Michael Kruse <llvm@meinersbur.de>
llvm-svn: 296853
This commit is contained in:
Tobias Grosser 2017-03-03 03:38:50 +00:00
parent 9d551da5c1
commit 7d136d952e
13 changed files with 16 additions and 12 deletions

View File

@ -18,7 +18,7 @@
; RUN: -disable-output < %s | \
; RUN: FileCheck %s -check-prefix=KERNEL-ASM
; REQUIRES: pollyacc
; REQUIRES: pollyacc,nvptx
; CHECK: Stmt_bb5
; CHECK-NEXT: Domain :=

View File

@ -2,7 +2,7 @@
; RUN: -disable-output < %s | \
; RUN: FileCheck %s
; REQUIRES: pollyacc
; REQUIRES: pollyacc,nvptx
;
; void foo(float A[], int n) {
; for (long j = 0; j < n; j++)

View File

@ -2,7 +2,7 @@
; RUN: -disable-output < %s | \
; RUN: FileCheck -check-prefix=IR %s
; REQUIRES: pollyacc
; REQUIRES: pollyacc,nvptx
; void foo(long n, float A[][n]) {
; for (long i = 0; i < 32; i++)

View File

@ -2,7 +2,7 @@
; XFAIL: *
; REQUIRES: pollyacc
; REQUIRES: pollyacc,nvptx
; This fails today with "type mismatch between callee prototype and arguments"

View File

@ -1,6 +1,6 @@
; RUN: opt %loadPolly -polly-codegen-ppcg -polly-acc-dump-code -disable-output %s
; REQUIRES: pollyacc
; REQUIRES: pollyacc,nvptx
; This fails today with "unexpected type" in the LLVM PTX backend.

View File

@ -2,7 +2,7 @@
; XFAIL: *
; REQUIRES: pollyacc
; REQUIRES: pollyacc,nvptx
; This fails today with "type mismatch between callee prototype and arguments"

View File

@ -2,7 +2,7 @@
; XFAIL: *
; REQUIRES: pollyacc
; REQUIRES: pollyacc,nvptx
; This fails today with "LowerFormalArguments didn't emit the correct number of
; values!"

View File

@ -2,7 +2,7 @@
; XFAIL: *
; REQUIRES: pollyacc
; REQUIRES: pollyacc,nvptx
; This fails today with "LowerFormalArguments didn't emit the correct number of
; values!"

View File

@ -2,7 +2,7 @@
; XFAIL: *
; REQUIRES: pollyacc
; REQUIRES: pollyacc,nvptx
; This fails today with "LowerFormalArguments didn't emit the correct number of
; values!"

View File

@ -2,7 +2,7 @@
; XFAIL: *
; REQUIRES: pollyacc
; REQUIRES: pollyacc,nvptx
; This fails today with "type mismatch between callee prototype and arguments"

View File

@ -2,7 +2,7 @@
; XFAIL: *
; REQUIRES: pollyacc
; REQUIRES: pollyacc,nvptx
; This fails today with "type mismatch between callee prototype and arguments"

View File

@ -10,7 +10,7 @@
; RUN: -disable-output -polly-acc-dump-kernel-ir < %s | \
; RUN: FileCheck -check-prefix=KERNEL %s
; REQUIRES: pollyacc
; REQUIRES: pollyacc,nvptx
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"

View File

@ -9,6 +9,7 @@ config.polly_lib_dir = "@POLLY_LIB_DIR@"
config.target_triple = "@TARGET_TRIPLE@"
config.enable_gpgpu_codegen = "@GPU_CODEGEN@"
config.link_polly_into_tools = "@LINK_POLLY_INTO_TOOLS@"
config.targets_to_build = "@TARGETS_TO_BUILD@"
## Check the current platform with regex
import re
@ -16,6 +17,9 @@ EAT_ERR_ON_X86 = ' '
if (re.match(r'^x86_64*', '@TARGET_TRIPLE@') == None) :
EAT_ERR_ON_X86 = '|| echo \"error is eaten\"'
for arch in config.targets_to_build.split():
config.available_features.add(arch.lower() + '-registered-target')
# Support substitution of the tools and libs dirs with user parameters. This is
# used when we can't determine the tool dir at configuration time.
try: