Commit 0102e469 by Tom de Vries Committed by Tom de Vries

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.

From-SVN: r250778
parent 813485c6
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.
2017-08-01 Richard Biener <rguenther@suse.de> 2017-08-01 Richard Biener <rguenther@suse.de>
PR tree-optimization/81181 PR tree-optimization/81181
......
...@@ -9,7 +9,7 @@ foo () ...@@ -9,7 +9,7 @@ foo ()
{ {
long long int a, b; long long int a, b;
unsigned int i; int i;
for (i = 0; i < 1000; i += 2) for (i = 0; i < 1000; i += 2)
{ {
a = p[i]; a = p[i];
......
...@@ -9,7 +9,7 @@ foo () ...@@ -9,7 +9,7 @@ foo ()
{ {
int a, b; int a, b;
unsigned int i; int i;
for (i = 0; i < 1000; i += 2) for (i = 0; i < 1000; i += 2)
{ {
a = p[i]; a = p[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment