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
This commit is contained in:
Tom de Vries 2017-08-01 13:52:14 +00:00 committed by Tom de Vries
parent 813485c661
commit 0102e469f5
3 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
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>
PR tree-optimization/81181

View file

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

View file

@ -9,7 +9,7 @@ foo ()
{
int a, b;
unsigned int i;
int i;
for (i = 0; i < 1000; i += 2)
{
a = p[i];