public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/63843] New: wrong code generation at -O1 and higher
@ 2014-11-13  0:57 mednafen at gmail dot com
  2014-11-13  9:17 ` [Bug tree-optimization/63843] [5 Regression] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mednafen at gmail dot com @ 2014-11-13  0:57 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 63843
           Summary: wrong code generation at -O1 and higher
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mednafen at gmail dot com

Created attachment 33955
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33955&action=edit
Testcase, good output is 8181.

trunk revision 217451
gcc (GCC) 5.0.0 20141112 (experimental)
Linux x86_64

$ ~mednafen/gcc-dev/bin/gcc -O0 -o tc tc.c
$ ./tc
8181

$ ~mednafen/gcc-dev/bin/gcc -O1 -o tc tc.c
$ ./tc 
ff81

$ ~mednafen/gcc-dev/bin/gcc -O1 -fno-tree-copyrename -o tc tc.c
$ ./tc 
8181


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

* [Bug tree-optimization/63843] [5 Regression] wrong code generation at -O1 and higher
  2014-11-13  0:57 [Bug c/63843] New: wrong code generation at -O1 and higher mednafen at gmail dot com
@ 2014-11-13  9:17 ` rguenth at gcc dot gnu.org
  2014-11-18 17:22 ` [Bug rtl-optimization/63843] " Alex.Velenko at arm dot com
  2014-11-19  8:19 ` jakub at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-11-13  9:17 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-*-*
           Priority|P3                          |P1


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

* [Bug rtl-optimization/63843] [5 Regression] wrong code generation at -O1 and higher
  2014-11-13  0:57 [Bug c/63843] New: wrong code generation at -O1 and higher mednafen at gmail dot com
  2014-11-13  9:17 ` [Bug tree-optimization/63843] [5 Regression] " rguenth at gcc dot gnu.org
@ 2014-11-18 17:22 ` Alex.Velenko at arm dot com
  2014-11-19  8:19 ` jakub at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: Alex.Velenko at arm dot com @ 2014-11-18 17:22 UTC (permalink / raw)
  To: gcc-bugs

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

Alex Velenko <Alex.Velenko at arm dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Alex.Velenko at arm dot com

--- Comment #3 from Alex Velenko <Alex.Velenko at arm dot com> ---
Hi,
Didn't have a gcc.gnu.org account yet, couldn't assign the ticket to myself.
Came to the same conclusion. Also testing.
Kind regards,
Alex


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

* [Bug rtl-optimization/63843] [5 Regression] wrong code generation at -O1 and higher
  2014-11-13  0:57 [Bug c/63843] New: wrong code generation at -O1 and higher mednafen at gmail dot com
  2014-11-13  9:17 ` [Bug tree-optimization/63843] [5 Regression] " rguenth at gcc dot gnu.org
  2014-11-18 17:22 ` [Bug rtl-optimization/63843] " Alex.Velenko at arm dot com
@ 2014-11-19  8:19 ` jakub at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-11-19  8:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Nov 19 08:18:53 2014
New Revision: 217753

URL: https://gcc.gnu.org/viewcvs?rev=217753&root=gcc&view=rev
Log:
    PR rtl-optimization/63843
    * simplify-rtx.c (simplify_binary_operation_1) <case ASHIFTRT>: For
    optimization of ashiftrt of subreg of lshiftrt, check that code
    is ASHIFTRT.

    * gcc.c-torture/execute/pr63843.c: New test.

Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/pr63843.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/simplify-rtx.c
    trunk/gcc/testsuite/ChangeLog


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

end of thread, other threads:[~2014-11-19  8:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-13  0:57 [Bug c/63843] New: wrong code generation at -O1 and higher mednafen at gmail dot com
2014-11-13  9:17 ` [Bug tree-optimization/63843] [5 Regression] " rguenth at gcc dot gnu.org
2014-11-18 17:22 ` [Bug rtl-optimization/63843] " Alex.Velenko at arm dot com
2014-11-19  8:19 ` jakub 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).