Patchwork [3/3] Handle const_vector in mulv4si3 for pre-sse4.1.

login
register
mail settings
Submitter Uros Bizjak
Date June 17, 2012, 6:41 p.m.
Message ID <CAFULd4ZyoSKooibmDtADzic0rOY_eLOSKx7Mh7uVLJCg603-Tw@mail.gmail.com>
Download mbox | patch
Permalink /patch/165348/
State New
Headers show

Comments

Uros Bizjak - June 17, 2012, 6:41 p.m.
On Sun, Jun 17, 2012 at 8:37 PM, Uros Bizjak <ubizjak@gmail.com> wrote:
> Hello!
>
> Please note that you will probably hit PR33329, this is the reason
> that we expand multiplications after reload. Please see [1] for
> further explanation. There is gcc.target/i386/pr33329.c test to cover
> this issue, but it is not effective anymore since the simplification
> happens at tree level.
>
> [1] http://gcc.gnu.org/ml/gcc-patches/2007-09/msg00668.html


Please adapt mentioned testcase with:

--cut here--
--cut here--

Uros.

Patch

Index: testsuite/gcc.target/i386/pr33329.c
===================================================================
--- testsuite/gcc.target/i386/pr33329.c (revision 188703)
+++ testsuite/gcc.target/i386/pr33329.c (working copy)
@@ -5,12 +5,12 @@ 

 void f (void)
 {
-  int tabs[8], tabcount;
+  int tabs[1024], tabcount;

-  for (tabcount = 1; tabcount <= 8; tabcount += 7)
+  for (tabcount = 1; tabcount <= 1024; tabcount += 7)
     {
       int i;
-      for (i = 0; i < 8; i++)
+      for (i = 0; i < 1024; i++)
        tabs[i] = i * 2;
       g (tabs);
     }