This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Simplify nvptx/slp* test-cases
- From: Tom de Vries <Tom_deVries at mentor dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 1 Aug 2017 16:03:07 +0200
- Subject: Simplify nvptx/slp* test-cases
- Authentication-results: sourceware.org; auth=none
Hi,
this patch simplifies the nvtpx/slp* test-cases by using signed loop
iteration variables, in order to work around PR81635.
Committed.
Thanks,
- Tom
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 <tom@codesourcery.com>
* gcc.target/nvptx/slp-2.c (foo): Use signed loop iteration variable.
* gcc.target/nvptx/slp.c (foo): Same.
---
gcc/testsuite/gcc.target/nvptx/slp-2.c | 2 +-
gcc/testsuite/gcc.target/nvptx/slp.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/gcc.target/nvptx/slp-2.c b/gcc/testsuite/gcc.target/nvptx/slp-2.c
index 6639491..1821999 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 5dee147..ca8191c 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];