public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "vekumar at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/66049] New: Few AArch64 extend and add with shift tests generates sub optimal code with trunk gcc 6.0. Date: Thu, 07 May 2015 12:35:00 -0000 [thread overview] Message-ID: <bug-66049-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66049 Bug ID: 66049 Summary: Few AArch64 extend and add with shift tests generates sub optimal code with trunk gcc 6.0. Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: vekumar at gcc dot gnu.org Target Milestone: --- After preventing conversion of shift to mults in combiner https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=222874 few Aarch64 target tests generates suboptimal code. Tests that now fail, but worked before: --------------------------------------- gcc.target/aarch64/adds1.c scan-assembler adds\tw[0-9]+, w[0-9]+, w[0-9]+, lsl 3 gcc.target/aarch64/adds1.c scan-assembler adds\tx[0-9]+, x[0-9]+, x[0-9]+, lsl 3 gcc.target/aarch64/adds3.c scan-assembler-times adds\tx[0-9]+, x[0-9]+, x[0-9]+, sxtw 2 gcc.target/aarch64/extend.c scan-assembler add\tw[0-9]+,.*uxth #?1 gcc.target/aarch64/extend.c scan-assembler add\tx[0-9]+,.*uxtw #?3 gcc.target/aarch64/extend.c scan-assembler sub\tw[0-9]+,.*uxth #?1 gcc.target/aarch64/extend.c scan-assembler sub\tx[0-9]+,.*uxth #?1 gcc.target/aarch64/extend.c scan-assembler sub\tx[0-9]+,.*uxtw #?3 gcc.target/aarch64/subs1.c scan-assembler subs\tw[0-9]+, w[0-9]+, w[0-9]+, lsl 3 gcc.target/aarch64/subs1.c scan-assembler subs\tx[0-9]+, x[0-9]+, x[0-9]+, lsl 3 gcc.target/aarch64/subs3.c scan-assembler-times subs\tx[0-9]+, x[0-9]+, x[0-9]+, sxtw 2 Sample Test case ---------------- unsigned long long adddi_uxtw (unsigned long long a, unsigned int i) { /* { dg-final { scan-assembler "add\tx\[0-9\]+,.*uxtw #?3" } } */ return a + ((unsigned long long)i << 3); } Before add x0, x0, x1, uxtw 3 Now ubfiz x1, x1, 3, 32 add x0, x1, x0
next reply other threads:[~2015-05-07 12:35 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-05-07 12:35 vekumar at gcc dot gnu.org [this message] 2015-05-08 16:33 ` [Bug target/66049] " ktkachov at gcc dot gnu.org 2015-05-12 8:16 ` ktkachov at gcc dot gnu.org 2015-05-15 14:35 ` ramana at gcc dot gnu.org 2015-05-15 15:38 ` [Bug target/66049] [6 regression] " vekumar at gcc dot gnu.org 2015-05-18 17:29 ` vekumar at gcc dot gnu.org 2015-05-19 9:27 ` ktkachov at gcc dot gnu.org 2015-05-26 15:32 ` vekumar at gcc dot gnu.org 2015-05-26 16:24 ` vekumar 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-66049-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).