From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14317 invoked by alias); 14 Sep 2006 22:58:19 -0000 Received: (qmail 14283 invoked by uid 48); 14 Sep 2006 22:58:12 -0000 Date: Thu, 14 Sep 2006 22:58:00 -0000 Subject: [Bug c/29091] New: vector constant not fully outputed X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-09/txt/msg01421.txt.bz2 List-Id: Testcase: #include __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