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 <t...@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];