diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2014-11-29 15:57:32 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2014-11-29 07:57:32 -0800 |
commit | 925f3e65464044e960562921a909c6e2b06831e2 (patch) | |
tree | b7250663a30222237a2d05098fa4bd2a5b481cde | |
parent | b731b39027f635f0afa97010e803212c1133ee55 (diff) | |
download | gcc-925f3e65464044e960562921a909c6e2b06831e2.zip gcc-925f3e65464044e960562921a909c6e2b06831e2.tar.gz gcc-925f3e65464044e960562921a909c6e2b06831e2.tar.bz2 |
Add a testcase for PR target/64114
PR target/64114
* gcc.target/i386/pr64114.c: New test.
From-SVN: r218182
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr64114.c | 24 |
2 files changed, 29 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 888c596..023e5d9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gcc.target/i386/pr64114.c b/gcc/testsuite/gcc.target/i386/pr64114.c new file mode 100644 index 0000000..d948684 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr64114.c @@ -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; +} |