Add a testcase for PR target/64114

PR target/64114
	* gcc.target/i386/pr64114.c: New test.

From-SVN: r218182
This commit is contained in:
H.J. Lu 2014-11-29 15:57:32 +00:00 committed by H.J. Lu
parent b731b39027
commit 925f3e6546
2 changed files with 29 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2014-11-29 H.J. Lu <hongjiu.lu@intel.com>
PR target/64114
* gcc.target/i386/pr64114.c: New test.
2014-11-29 Joseph Myers <joseph@codesourcery.com>
PR preprocessor/41698

View file

@ -0,0 +1,24 @@
/* { dg-do compile } */
/* { dg-options "-O -mstringop-strategy=vector_loop -mno-push-args" } */
extern float *ptrs[];
extern int incs[];
struct big
{
int i[0x10000];
};
extern void bar (struct big b);
struct big
foo (int n)
{
struct big b;
int inc14 = incs[15], inc16 = n, inc17 = n, inc19 = incs[3];
float *ptr0 = ptrs[1], *ptr14 = ptrs[14], *ptr16 = ptrs[16];
while (n--)
*ptr0 += *ptr14 += inc14 += *ptr16 += inc16 += inc17 += inc19, bar (b);
return b;
}