[polly] r296853 - [tests] Specify the dependence to NVPTX backend for Polly ACC test cases
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 2 19:38:50 PST 2017
Author: grosser
Date: Thu Mar 2 21:38:50 2017
New Revision: 296853
URL: http://llvm.org/viewvc/llvm-project?rev=296853&view=rev
Log:
[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 at meinersbur.de>
Modified:
polly/trunk/test/GPGPU/double-parallel-loop.ll
polly/trunk/test/GPGPU/scalar-param-and-value-32-bit.ll
polly/trunk/test/GPGPU/scalar-param-and-value-use.ll
polly/trunk/test/GPGPU/scalar-parameter-fp128.ll
polly/trunk/test/GPGPU/scalar-parameter-half.ll
polly/trunk/test/GPGPU/scalar-parameter-i120.ll
polly/trunk/test/GPGPU/scalar-parameter-i128.ll
polly/trunk/test/GPGPU/scalar-parameter-i3000.ll
polly/trunk/test/GPGPU/scalar-parameter-i80.ll
polly/trunk/test/GPGPU/scalar-parameter-ppc_fp128.ll
polly/trunk/test/GPGPU/scalar-parameter-x86_fp80.ll
polly/trunk/test/GPGPU/scalar-parameter.ll
polly/trunk/test/lit.site.cfg.in
Modified: polly/trunk/test/GPGPU/double-parallel-loop.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/GPGPU/double-parallel-loop.ll?rev=296853&r1=296852&r2=296853&view=diff
==============================================================================
--- polly/trunk/test/GPGPU/double-parallel-loop.ll (original)
+++ polly/trunk/test/GPGPU/double-parallel-loop.ll Thu Mar 2 21:38:50 2017
@@ -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 :=
Modified: polly/trunk/test/GPGPU/scalar-param-and-value-32-bit.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/GPGPU/scalar-param-and-value-32-bit.ll?rev=296853&r1=296852&r2=296853&view=diff
==============================================================================
--- polly/trunk/test/GPGPU/scalar-param-and-value-32-bit.ll (original)
+++ polly/trunk/test/GPGPU/scalar-param-and-value-32-bit.ll Thu Mar 2 21:38:50 2017
@@ -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++)
Modified: polly/trunk/test/GPGPU/scalar-param-and-value-use.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/GPGPU/scalar-param-and-value-use.ll?rev=296853&r1=296852&r2=296853&view=diff
==============================================================================
--- polly/trunk/test/GPGPU/scalar-param-and-value-use.ll (original)
+++ polly/trunk/test/GPGPU/scalar-param-and-value-use.ll Thu Mar 2 21:38:50 2017
@@ -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++)
Modified: polly/trunk/test/GPGPU/scalar-parameter-fp128.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/GPGPU/scalar-parameter-fp128.ll?rev=296853&r1=296852&r2=296853&view=diff
==============================================================================
--- polly/trunk/test/GPGPU/scalar-parameter-fp128.ll (original)
+++ polly/trunk/test/GPGPU/scalar-parameter-fp128.ll Thu Mar 2 21:38:50 2017
@@ -2,7 +2,7 @@
; XFAIL: *
-; REQUIRES: pollyacc
+; REQUIRES: pollyacc,nvptx
; This fails today with "type mismatch between callee prototype and arguments"
Modified: polly/trunk/test/GPGPU/scalar-parameter-half.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/GPGPU/scalar-parameter-half.ll?rev=296853&r1=296852&r2=296853&view=diff
==============================================================================
--- polly/trunk/test/GPGPU/scalar-parameter-half.ll (original)
+++ polly/trunk/test/GPGPU/scalar-parameter-half.ll Thu Mar 2 21:38:50 2017
@@ -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.
Modified: polly/trunk/test/GPGPU/scalar-parameter-i120.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/GPGPU/scalar-parameter-i120.ll?rev=296853&r1=296852&r2=296853&view=diff
==============================================================================
--- polly/trunk/test/GPGPU/scalar-parameter-i120.ll (original)
+++ polly/trunk/test/GPGPU/scalar-parameter-i120.ll Thu Mar 2 21:38:50 2017
@@ -2,7 +2,7 @@
; XFAIL: *
-; REQUIRES: pollyacc
+; REQUIRES: pollyacc,nvptx
; This fails today with "type mismatch between callee prototype and arguments"
Modified: polly/trunk/test/GPGPU/scalar-parameter-i128.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/GPGPU/scalar-parameter-i128.ll?rev=296853&r1=296852&r2=296853&view=diff
==============================================================================
--- polly/trunk/test/GPGPU/scalar-parameter-i128.ll (original)
+++ polly/trunk/test/GPGPU/scalar-parameter-i128.ll Thu Mar 2 21:38:50 2017
@@ -2,7 +2,7 @@
; XFAIL: *
-; REQUIRES: pollyacc
+; REQUIRES: pollyacc,nvptx
; This fails today with "LowerFormalArguments didn't emit the correct number of
; values!"
Modified: polly/trunk/test/GPGPU/scalar-parameter-i3000.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/GPGPU/scalar-parameter-i3000.ll?rev=296853&r1=296852&r2=296853&view=diff
==============================================================================
--- polly/trunk/test/GPGPU/scalar-parameter-i3000.ll (original)
+++ polly/trunk/test/GPGPU/scalar-parameter-i3000.ll Thu Mar 2 21:38:50 2017
@@ -2,7 +2,7 @@
; XFAIL: *
-; REQUIRES: pollyacc
+; REQUIRES: pollyacc,nvptx
; This fails today with "LowerFormalArguments didn't emit the correct number of
; values!"
Modified: polly/trunk/test/GPGPU/scalar-parameter-i80.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/GPGPU/scalar-parameter-i80.ll?rev=296853&r1=296852&r2=296853&view=diff
==============================================================================
--- polly/trunk/test/GPGPU/scalar-parameter-i80.ll (original)
+++ polly/trunk/test/GPGPU/scalar-parameter-i80.ll Thu Mar 2 21:38:50 2017
@@ -2,7 +2,7 @@
; XFAIL: *
-; REQUIRES: pollyacc
+; REQUIRES: pollyacc,nvptx
; This fails today with "LowerFormalArguments didn't emit the correct number of
; values!"
Modified: polly/trunk/test/GPGPU/scalar-parameter-ppc_fp128.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/GPGPU/scalar-parameter-ppc_fp128.ll?rev=296853&r1=296852&r2=296853&view=diff
==============================================================================
--- polly/trunk/test/GPGPU/scalar-parameter-ppc_fp128.ll (original)
+++ polly/trunk/test/GPGPU/scalar-parameter-ppc_fp128.ll Thu Mar 2 21:38:50 2017
@@ -2,7 +2,7 @@
; XFAIL: *
-; REQUIRES: pollyacc
+; REQUIRES: pollyacc,nvptx
; This fails today with "type mismatch between callee prototype and arguments"
Modified: polly/trunk/test/GPGPU/scalar-parameter-x86_fp80.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/GPGPU/scalar-parameter-x86_fp80.ll?rev=296853&r1=296852&r2=296853&view=diff
==============================================================================
--- polly/trunk/test/GPGPU/scalar-parameter-x86_fp80.ll (original)
+++ polly/trunk/test/GPGPU/scalar-parameter-x86_fp80.ll Thu Mar 2 21:38:50 2017
@@ -2,7 +2,7 @@
; XFAIL: *
-; REQUIRES: pollyacc
+; REQUIRES: pollyacc,nvptx
; This fails today with "type mismatch between callee prototype and arguments"
Modified: polly/trunk/test/GPGPU/scalar-parameter.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/GPGPU/scalar-parameter.ll?rev=296853&r1=296852&r2=296853&view=diff
==============================================================================
--- polly/trunk/test/GPGPU/scalar-parameter.ll (original)
+++ polly/trunk/test/GPGPU/scalar-parameter.ll Thu Mar 2 21:38:50 2017
@@ -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"
Modified: polly/trunk/test/lit.site.cfg.in
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/lit.site.cfg.in?rev=296853&r1=296852&r2=296853&view=diff
==============================================================================
--- polly/trunk/test/lit.site.cfg.in (original)
+++ polly/trunk/test/lit.site.cfg.in Thu Mar 2 21:38:50 2017
@@ -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:
More information about the llvm-commits
mailing list