public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/29091]  New: vector constant not fully outputed
@ 2006-09-14 22:58 pinskia at gcc dot gnu dot org
  2006-09-14 23:07 ` [Bug c/29091] " pinskia at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-14 22:58 UTC (permalink / raw)
  To: gcc-bugs

Testcase:
#include <stdlib.h>
__attribute__((vector_size(16))) int a = {1, 2};

int main(void)
{
  int *b = (int*)&a;
  if (b[0] != 1)
    abort ();
  if (b[1] != 2)
    abort ();
  if (b[2] != 0)
    abort ();
  if (b[3] != 0)
    abort ();
  return 0;
}

----
The VECTOR_CST has only two elements.


-- 
           Summary: vector constant not fully outputed
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


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


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

end of thread, other threads:[~2007-02-03 20:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-14 22:58 [Bug c/29091] New: vector constant not fully outputed pinskia at gcc dot gnu dot org
2006-09-14 23:07 ` [Bug c/29091] " pinskia at gcc dot gnu dot org
2006-09-15  5:34 ` [Bug c/29091] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2006-09-15  5:35 ` pinskia at gcc dot gnu dot org
2006-09-16 10:16 ` steven at gcc dot gnu dot org
2006-09-17  1:23 ` pinskia at gcc dot gnu dot org
2006-09-20 22:36 ` mmitchel at gcc dot gnu dot org
2006-10-04 16:28 ` jakub at gcc dot gnu dot org
2006-10-06  7:16 ` jakub at gcc dot gnu dot org
2006-10-06  7:43 ` [Bug c/29091] [4.0/4.1 " jakub at gcc dot gnu dot org
2006-10-16  9:59 ` jakub at gcc dot gnu dot org
2007-02-03 20:16 ` [Bug c/29091] [4.0 " gdr at gcc dot gnu dot 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).