public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "sje at cup dot hp.com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/47866] New: gcc.dg/torture/vector-2.c fails on IA64 Date: Wed, 23 Feb 2011 23:29:00 -0000 [thread overview] Message-ID: <bug-47866-4@http.gcc.gnu.org/bugzilla/> (raw) 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
next reply other threads:[~2011-02-23 22:55 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-02-23 23:29 sje at cup dot hp.com [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-47866-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).