From 0102e469f556aed64b50d71c6652baff61999485 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Tue, 1 Aug 2017 13:52:14 +0000 Subject: [PATCH] Simplify nvptx/slp* test-cases Use signed loop iteration variable in nvtpx/slp* test-cases to work around PR tree-optimizaion/81635. 2017-08-01 Tom de Vries * gcc.target/nvptx/slp-2.c (foo): Use signed loop iteration variable. * gcc.target/nvptx/slp.c (foo): Same. From-SVN: r250778 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/nvptx/slp-2.c | 2 +- gcc/testsuite/gcc.target/nvptx/slp.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 768321d4215..49b5d5838e8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-08-01 Tom de Vries + + * gcc.target/nvptx/slp-2.c (foo): Use signed loop iteration variable. + * gcc.target/nvptx/slp.c (foo): Same. + 2017-08-01 Richard Biener PR tree-optimization/81181 diff --git a/gcc/testsuite/gcc.target/nvptx/slp-2.c b/gcc/testsuite/gcc.target/nvptx/slp-2.c index 66394918d63..18219996788 100644 --- a/gcc/testsuite/gcc.target/nvptx/slp-2.c +++ b/gcc/testsuite/gcc.target/nvptx/slp-2.c @@ -9,7 +9,7 @@ foo () { long long int a, b; - unsigned int i; + int i; for (i = 0; i < 1000; i += 2) { a = p[i]; diff --git a/gcc/testsuite/gcc.target/nvptx/slp.c b/gcc/testsuite/gcc.target/nvptx/slp.c index 5dee147af9c..ca8191cccce 100644 --- a/gcc/testsuite/gcc.target/nvptx/slp.c +++ b/gcc/testsuite/gcc.target/nvptx/slp.c @@ -9,7 +9,7 @@ foo () { int a, b; - unsigned int i; + int i; for (i = 0; i < 1000; i += 2) { a = p[i]; -- 2.30.2