public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/62261] New: [sh64] ICE for negative shift counts
@ 2014-08-25 23:27 kkojima at gcc dot gnu.org
  2014-08-27 23:25 ` [Bug target/62261] " kkojima at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: kkojima at gcc dot gnu.org @ 2014-08-25 23:27 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 62261
           Summary: [sh64] ICE for negative shift counts
           Product: gcc
           Version: 4.9.1
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kkojima at gcc dot gnu.org
                CC: dhowells at redhat dot com, olegendo at gcc dot gnu.org
            Target: sh64-*

This was reported originally by dhowells at #c7 of PR62111.

void foo (unsigned long long x)
{
  bar (x << -1);
}

causes an error: unrecognizable insn:

(insn 7 6 8 2 (set (reg:DI 160 [ D.1442 ])
        (ashift:DI (reg:DI 161)
            (const_int -1 [0xffffffffffffffff]))) xx.c:3 -1
     (nil))

A possible patch is proposed at #c14 of PR62111.


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

* [Bug target/62261] [sh64] ICE for negative shift counts
  2014-08-25 23:27 [Bug target/62261] New: [sh64] ICE for negative shift counts kkojima at gcc dot gnu.org
@ 2014-08-27 23:25 ` kkojima at gcc dot gnu.org
  2014-09-02 22:33 ` kkojima at gcc dot gnu.org
  2014-09-02 22:36 ` kkojima at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: kkojima at gcc dot gnu.org @ 2014-08-27 23:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Kazumoto Kojima <kkojima at gcc dot gnu.org> ---
Author: kkojima
Date: Wed Aug 27 23:25:14 2014
New Revision: 214612

URL: https://gcc.gnu.org/viewcvs?rev=214612&root=gcc&view=rev
Log:
        PR target/62261
        * config/sh/sh.md (ashlsi3): Handle negative shift count for
    TARGET_SHMEDIA.
    (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/sh/sh.md


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

* [Bug target/62261] [sh64] ICE for negative shift counts
  2014-08-25 23:27 [Bug target/62261] New: [sh64] ICE for negative shift counts kkojima at gcc dot gnu.org
  2014-08-27 23:25 ` [Bug target/62261] " kkojima at gcc dot gnu.org
@ 2014-09-02 22:33 ` kkojima at gcc dot gnu.org
  2014-09-02 22:36 ` kkojima at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: kkojima at gcc dot gnu.org @ 2014-09-02 22:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Kazumoto Kojima <kkojima at gcc dot gnu.org> ---
Author: kkojima
Date: Tue Sep  2 22:32:29 2014
New Revision: 214833

URL: https://gcc.gnu.org/viewcvs?rev=214833&root=gcc&view=rev
Log:
        PR target/62261
        * config/sh/sh.md (ashlsi3): Handle negative shift count for
    TARGET_SHMEDIA.
    (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.


Modified:
    branches/gcc-4_9-branch/gcc/ChangeLog
    branches/gcc-4_9-branch/gcc/config/sh/sh.md


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

* [Bug target/62261] [sh64] ICE for negative shift counts
  2014-08-25 23:27 [Bug target/62261] New: [sh64] ICE for negative shift counts kkojima at gcc dot gnu.org
  2014-08-27 23:25 ` [Bug target/62261] " kkojima at gcc dot gnu.org
  2014-09-02 22:33 ` kkojima at gcc dot gnu.org
@ 2014-09-02 22:36 ` kkojima at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: kkojima at gcc dot gnu.org @ 2014-09-02 22:36 UTC (permalink / raw)
  To: gcc-bugs

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

Kazumoto Kojima <kkojima at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Kazumoto Kojima <kkojima at gcc dot gnu.org> ---
Fixed.


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

end of thread, other threads:[~2014-09-02 22:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-25 23:27 [Bug target/62261] New: [sh64] ICE for negative shift counts kkojima at gcc dot gnu.org
2014-08-27 23:25 ` [Bug target/62261] " kkojima at gcc dot gnu.org
2014-09-02 22:33 ` kkojima at gcc dot gnu.org
2014-09-02 22:36 ` kkojima 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).