public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "hurbain at cri dot ensmp dot fr" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug regression/26128] New: Regression vs 4.1.0cvs20051015 - Trivial operation not vectorized Date: Mon, 06 Feb 2006 14:55:00 -0000 [thread overview] Message-ID: <bug-26128-10506@http.gcc.gnu.org/bugzilla/> (raw) char a[16] __attribute__((aligned)) = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}; char b[16] __attribute__((aligned)) = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}; char c[16] __attribute__((aligned)); int i; for(i = 0; i<16; i++) { c[i] = a[i] + b[i]; } for(i = 0; i<16; i++) { printf("%i ", c[i]); } This code is not vectorized anymore in GCC 4.2.0 (svn checkout on Feb, 06 2006). The vectorizer tells that : paddb4bugreport.c:14: note: vect_is_simple_use: operand (unsigned char) D.1872_47 paddb4bugreport.c:14: note: not ssa-name. paddb4bugreport.c:14: note: use not simple. paddb4bugreport.c:14: note: not vectorized: relevant stmt not supported: D.1873_48 = (unsigned char) D.1872_47 paddb4bugreport.c:14: note: bad operation or unsupported loop bound.(get_loop_exit_condition if (ivtmp.52_2 != 0) goto <L13>; else goto <L5>;) Seems to be a problem before the autovectorizer as the (unsigned char) cast should not happen IMHO. -- Summary: Regression vs 4.1.0cvs20051015 - Trivial operation not vectorized Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: regression AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: hurbain at cri dot ensmp dot fr http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26128
next reply other threads:[~2006-02-06 14:55 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-02-06 14:55 hurbain at cri dot ensmp dot fr [this message] 2006-02-06 15:00 ` [Bug tree-optimization/26128] Trivial operation not vectorized on char pinskia at gcc dot gnu dot org 2006-09-21 17:12 ` pinskia at gcc dot gnu dot org 2007-06-12 17:37 ` [Bug tree-optimization/26128] Trivial operation not vectorized on char/short pinskia at gcc dot gnu dot org 2009-02-06 1:45 ` pinskia at gcc dot gnu dot 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-26128-10506@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).