public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/61926] New: const-anchor optimisation is sensitive to ordering
@ 2014-07-27  9:44 rsandifo at gcc dot gnu.org
  2014-07-27  9:51 ` [Bug rtl-optimization/61926] " rsandifo at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2014-07-27  9:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61926

            Bug ID: 61926
           Summary: const-anchor optimisation is sensitive to ordering
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rsandifo at gcc dot gnu.org
            Target: mips*-*-*

gcc.target/mips/const-anchor-1.c tests that cse uses constant anchors for:

  g (0x1233ffff, 0x12340001);

But this does not work for:

  g (0x12340001, 0x1233ffff);

since the constant that provides the 0x12340000 anchor then comes after
the constant that requires it.  Maybe this could fixed by doing the
anchor optimisation in gcse.c instead, although that probably isn't
trivial.

Related to PR33699.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug rtl-optimization/61926] const-anchor optimisation is sensitive to ordering
  2014-07-27  9:44 [Bug rtl-optimization/61926] New: const-anchor optimisation is sensitive to ordering rsandifo at gcc dot gnu.org
@ 2014-07-27  9:51 ` rsandifo at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2014-07-27  9:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61926

--- Comment #1 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
Author: rsandifo
Date: Sun Jul 27 09:50:56 2014
New Revision: 213093

URL: https://gcc.gnu.org/viewcvs?rev=213093&root=gcc&view=rev
Log:
gcc/testsuite/
    PR rtl-optimization/61926
    * gcc.target/mips/const-anchor-1.c, gcc.target/mips/const-anchor-2.c:
    Reverse argument order.
    * gcc.target/mips/const-anchor-3.c, gcc.target/mips/const-anchor-4.c:
    New XFAILed tests that match the original order.

Added:
    trunk/gcc/testsuite/gcc.target/mips/const-anchor-3.c
    trunk/gcc/testsuite/gcc.target/mips/const-anchor-4.c
Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/mips/const-anchor-1.c
    trunk/gcc/testsuite/gcc.target/mips/const-anchor-2.c


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-27  9:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-27  9:44 [Bug rtl-optimization/61926] New: const-anchor optimisation is sensitive to ordering rsandifo at gcc dot gnu.org
2014-07-27  9:51 ` [Bug rtl-optimization/61926] " rsandifo at gcc dot gnu.org

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).