public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/47866] New: gcc.dg/torture/vector-2.c fails on IA64
@ 2011-02-23 23:29 sje at cup dot hp.com
  2011-03-06 19:07 ` [Bug rtl-optimization/47866] [4.5/4.6 Regression] " ubizjak at gmail dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: sje at cup dot hp.com @ 2011-02-23 23:29 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47866

           Summary: gcc.dg/torture/vector-2.c fails on IA64
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: sje@cup.hp.com


gcc.dg/torture/vector-2.c is failing on Linux and HP-UX IA64 platforms since
r165240 which is Richard Henderson's fix for PR rtl-opt/33721.  This may be a
target specific bug but the change that caused the failure to show up is not
target specific.

gcc.dg/torture/vector-2.c fails at -O2, but passes at -O0 or -O1.  With the
latest sources I can use this cutdown test case to see the difference:

#define vector __attribute__((vector_size(16) ))

vector int f0(vector int t, int a)
{
 ((int*)&t)[0] = a;
 return t;
}
vector int f1(vector int t, int a)
{
 ((int*)&t)[1] = a;
 return t;
}
int main(void)
{
  vector int a = {0, 0, 0, 0};
  vector int a0;
  a0 = f0(a, 1);
  printf("%d %d %d %d\n", a0[0], a0[1], a0[2], a0[3]);
  a0 = f1(a, 1);
  printf("%d %d %d %d\n", a0[0], a0[1], a0[2], a0[3]);
  return 0;
}


At -O0 or -O1 it prints:

1 0 0 0
0 1 0 0

At -O2 it prints:

1 0 0 0
0 0 0 0


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-07-02 10:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-23 23:29 [Bug rtl-optimization/47866] New: gcc.dg/torture/vector-2.c fails on IA64 sje at cup dot hp.com
2011-03-06 19:07 ` [Bug rtl-optimization/47866] [4.5/4.6 Regression] " ubizjak at gmail dot com
2011-03-07 10:38 ` rguenth at gcc dot gnu.org
2011-03-08 17:05 ` jakub at gcc dot gnu.org
2011-03-08 17:41 ` jakub at gcc dot gnu.org
2011-03-08 18:41 ` jakub at gcc dot gnu.org
2011-03-08 23:29 ` mark at gcc dot gnu.org
2011-03-09 17:27 ` sje at cup dot hp.com
2011-03-09 20:49 ` jakub at gcc dot gnu.org
2011-03-09 20:52 ` [Bug rtl-optimization/47866] [4.5 " jakub at gcc dot gnu.org
2011-04-28 15:31 ` rguenth at gcc dot gnu.org
2012-07-02 10:30 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).