public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/60960] [4.8/4.9/4.10 Regression] Wrong result when a vector variable is divided by a literal constant Date: Fri, 25 Apr 2014 07:12:00 -0000 [thread overview] Message-ID: <bug-60960-4-gn4JwPZQuE@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-60960-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60960 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org Target Milestone|--- |4.8.3 Summary|Wrong result when a vector |[4.8/4.9/4.10 Regression] |variable is divided by a |Wrong result when a vector |literal constant |variable is divided by a | |literal constant --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- typedef unsigned char v4qi __attribute__ ((vector_size (4))); __attribute__((noinline, noclone)) v4qi f1 (v4qi v) { return v / 2; } __attribute__((noinline, noclone)) v4qi f2 (v4qi v) { return v / (v4qi) { 2, 2, 2, 2 }; } __attribute__((noinline, noclone)) v4qi f3 (v4qi x, v4qi y) { return x / y; } int main () { v4qi x = { 5, 5, 5, 5 }; v4qi y = { 2, 2, 2, 2 }; v4qi z = f1 (x); if (__builtin_memcmp (&y, &z, sizeof (y)) != 0) __builtin_abort (); z = f2 (x); if (__builtin_memcmp (&y, &z, sizeof (y)) != 0) __builtin_abort (); z = f3 (x, y); if (__builtin_memcmp (&y, &z, sizeof (y)) != 0) __builtin_abort (); return 0; } Started with my r189043. Will have a look.
next prev parent reply other threads:[~2014-04-25 7:12 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-04-25 6:28 [Bug middle-end/60960] New: " uranus at tinlans dot org 2014-04-25 6:57 ` [Bug middle-end/60960] " glisse at gcc dot gnu.org 2014-04-25 7:12 ` jakub at gcc dot gnu.org [this message] 2014-04-25 7:34 ` [Bug tree-optimization/60960] [4.8/4.9/4.10 Regression] " jakub at gcc dot gnu.org 2014-04-25 13:53 ` jakub at gcc dot gnu.org 2014-04-25 13:54 ` jakub at gcc dot gnu.org 2014-04-25 14:10 ` [Bug tree-optimization/60960] [4.8 " jakub at gcc dot gnu.org 2014-05-05 8:17 ` jakub at gcc dot gnu.org 2014-05-05 8:18 ` jakub 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-60960-4-gn4JwPZQuE@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).