re PR target/81550 (gcc.target/powerpc/loop_align.c fails starting with r250482)

[gcc/testsuite]
2018-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/81550
	* gcc.target/powerpc/loop_align.c: Use unsigned long for the loop
	index instead of int, which allows IVOPTs to properly optimize the
	loop.

From-SVN: r257038
This commit is contained in:
Michael Meissner 2018-01-25 01:09:19 +00:00 committed by Michael Meissner
parent 1983b3e029
commit 533277ba75
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2018-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/81550
* gcc.target/powerpc/loop_align.c: Use unsigned long for the loop
index instead of int, which allows IVOPTs to properly optimize the
loop.
2018-01-24 David Malcolm <dmalcolm@redhat.com>
PR jit/82846

View file

@ -4,8 +4,8 @@
/* { dg-options "-O2 -mcpu=power7 -falign-functions=16" } */
/* { dg-final { scan-assembler ".p2align 5,,31" } } */
void f(double *a, double *b, double *c, int n) {
int i;
void f(double *a, double *b, double *c, unsigned long n) {
unsigned long i;
for (i=0; i < n; i++)
a[i] = b[i] + c[i];
}