public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/53773] New: Vectorizer generates non-canonical multiplies Date: Mon, 25 Jun 2012 22:16:00 -0000 [thread overview] Message-ID: <bug-53773-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53773 Bug #: 53773 Summary: Vectorizer generates non-canonical multiplies Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned@gcc.gnu.org ReportedBy: wschmidt@gcc.gnu.org CC: bergner@vnet.ibm.com, rguenther@suse.de There are two tests in the regression testsuite for which the vectorizer generates GIMPLE multiplies that are not canonical. Specifically, they generate multiplies where rhs1 is a constant and rhs2 is an SSA name. The two tests are: (1) gcc.dg/vect/pr50451.c (2) gfortran.dg/pr17143.f90 For (1), the generated GIMPLE includes: integral_7 = 10 * integral_17; ... decimal_8 = 10 * decimal_18; For (2): i.3_3 = 2 * prephitmp.9_23; Probably best just to run these tests from the test suite to reproduce, but here are the commands I used. Example invocation for (1): /home/wschmidt/gcc/build/gcc-mainline-slsrpt1a-debug/gcc/xgcc -B/home/wschmidt/gcc/build/gcc-mainline-slsrpt1a-debug/gcc/ /home/wschmidt/gcc/gcc-mainline-slsrpt1a/gcc/testsuite/gcc.dg/vect/pr50451.c -fno-diagnostics-show-caret -flto -maltivec -mvsx -mno-allow-movmisalign -ftree-vectorize -fno-vect-cost-model -fno-common -O2 -fdump-tree-vect-details -S -m64 -o pr50451.s Example invocation for (2): /home/wschmidt/gcc/install/gcc-mainline-slsrpt1a-debug/bin/gfortran -B/home/wschmidt/gcc/build/gcc-mainline-slsrpt1a-debug/gcc/testsuite/gfortran3/../../ -B/home/wschmidt/gcc/build/gcc-mainline-slsrpt1a-debug/powerpc64-linux/32/libgfortran/ /home/wschmidt/gcc/gcc-mainline-slsrpt1a/gcc/testsuite/gfortran.dg/pr17143.f90 -fno-diagnostics-show-caret -O3 -fomit-frame-pointer -std=legacy -B/home/wschmidt/gcc/build/gcc-mainline-slsrpt1a-debug/powerpc64-linux/32/libgfortran/.libs -L/home/wschmidt/gcc/build/gcc-mainline-slsrpt1a-debug/powerpc64-linux/32/libgfortran/.libs -L/home/wschmidt/gcc/build/gcc-mainline-slsrpt1a-debug/powerpc64-linux/32/libgfortran/.libs -lm -m32 -o ./pr17143.exe
next reply other threads:[~2012-06-25 22:16 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-06-25 22:16 wschmidt at gcc dot gnu.org [this message] 2012-06-26 8:31 ` [Bug tree-optimization/53773] " jakub at gcc dot gnu.org 2012-06-26 8:36 ` rguenther at suse dot de 2012-06-26 8:52 ` rguenth at gcc dot gnu.org 2012-07-27 16:27 ` wschmidt at gcc dot gnu.org 2012-07-29 16:55 ` wschmidt at gcc dot gnu.org 2012-07-29 16:56 ` wschmidt at gcc dot gnu.org 2012-07-30 8:47 ` rguenther at suse dot de 2012-07-31 12:25 ` wschmidt at gcc dot gnu.org 2012-07-31 12:26 ` wschmidt 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-53773-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).