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 tree-optimization/50596] Problems in vectorization of condition expression Date: Fri, 07 Oct 2011 10:31:00 -0000 [thread overview] Message-ID: <bug-50596-4-RTefFTHEbg@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-50596-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50596 --- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-10-07 10:31:13 UTC --- float a[1024], b[1024], c[1024], d[1024]; int j[1024]; void f1 (void) { int i; for (i = 0; i < 1024; ++i) { unsigned int x = a[i] < b[i] ? -1 : 0; unsigned int y = c[i] < d[i] ? -1 : 0; j[i] = (x & y) >> 31; } } vectorizes fine and generates quite good code IMHO. Something similar I'd like to achieve with the vect_recog_bool_pattern I'm working on even for some of your testcases.
next prev parent reply other threads:[~2011-10-07 10:31 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-10-03 8:08 [Bug tree-optimization/50596] New: " vincenzo.innocente at cern dot ch 2011-10-03 8:41 ` [Bug tree-optimization/50596] " vincenzo.innocente at cern dot ch 2011-10-04 7:05 ` jakub at gcc dot gnu.org 2011-10-04 9:12 ` vincenzo.innocente at cern dot ch 2011-10-04 11:10 ` rguenth at gcc dot gnu.org 2011-10-04 11:14 ` jakub at gcc dot gnu.org 2011-10-04 11:28 ` rguenther at suse dot de 2011-10-04 11:29 ` rguenther at suse dot de 2011-10-05 7:11 ` jakub at gcc dot gnu.org 2011-10-06 11:58 ` jakub at gcc dot gnu.org 2011-10-06 12:31 ` irar at il dot ibm.com 2011-10-06 13:34 ` jakub at gcc dot gnu.org 2011-10-06 17:51 ` jakub at gcc dot gnu.org 2011-10-07 7:36 ` vincenzo.innocente at cern dot ch 2011-10-07 10:16 ` vincenzo.innocente at cern dot ch 2011-10-07 10:31 ` jakub at gcc dot gnu.org [this message] 2011-10-16 13:11 ` jakub at gcc dot gnu.org 2011-10-16 13:47 ` vincenzo.innocente at cern dot ch 2011-10-25 8:03 ` jakub at gcc dot gnu.org 2011-10-25 8:24 ` 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-50596-4-RTefFTHEbg@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).