[Bug target/68015] ICE in s390_emit_compare

2016-01-19 Thread krebbel at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68015

Andreas Krebbel  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from Andreas Krebbel  ---
Fixed per comment 3

[Bug target/68015] ICE in s390_emit_compare

2015-10-22 Thread krebbel at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68015

--- Comment #3 from Andreas Krebbel  ---
Author: krebbel
Date: Thu Oct 22 08:24:01 2015
New Revision: 229163

URL: https://gcc.gnu.org/viewcvs?rev=229163=gcc=rev
Log:
S/390: PR68015 Fix ICE in s390_emit_compare

gcc/ChangeLog:

2015-10-22  Andreas Krebbel  

PR target/68015
* config/s390/s390.md (movcc): Emit compare only if we don't
already have a comparison result.

gcc/testsuite/ChangeLog:

2015-10-22  Andreas Krebbel  

PR target/68015
* gcc.target/s390/pr68015.c: New test.


Added:
trunk/gcc/testsuite/gcc.target/s390/pr68015.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/s390/s390.md
trunk/gcc/testsuite/ChangeLog


[Bug target/68015] ICE in s390_emit_compare

2015-10-22 Thread krebbel at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68015

--- Comment #4 from Andreas Krebbel  ---
Author: krebbel
Date: Thu Oct 22 08:28:57 2015
New Revision: 229165

URL: https://gcc.gnu.org/viewcvs?rev=229165=gcc=rev
Log:
S/390: PR68015 Fix ICE in s390_emit_compare

gcc/ChangeLog:

2015-10-22  Andreas Krebbel  

Backport from mainline
2015-10-22  Andreas Krebbel  

PR target/68015
* config/s390/s390.md (movcc): Emit compare only if we don't
already have a comparison result.

gcc/testsuite/ChangeLog:

2015-10-22  Andreas Krebbel  

Backport from mainline
2015-10-22  Andreas Krebbel  

PR target/68015
* gcc.target/s390/pr68015.c: New test.


Added:
branches/gcc-5-branch/gcc/testsuite/gcc.target/s390/pr68015.c
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/config/s390/s390.md
branches/gcc-5-branch/gcc/testsuite/ChangeLog


[Bug target/68015] ICE in s390_emit_compare

2015-10-20 Thread krebbel at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68015

Andreas Krebbel  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2015-10-20
   Assignee|unassigned at gcc dot gnu.org  |krebbel at gcc dot 
gnu.org
 Ever confirmed|0   |1


[Bug target/68015] ICE in s390_emit_compare

2015-10-20 Thread krebbel at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68015

--- Comment #2 from Andreas Krebbel  ---
Created attachment 36549
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36549=edit
Experimental fix

I'm regression testing the attached patch.


[Bug target/68015] ICE in s390_emit_compare

2015-10-19 Thread matz at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68015

Michael Matz  changed:

   What|Removed |Added

 CC||krebbel at gcc dot gnu.org

--- Comment #1 from Michael Matz  ---
This also happens on the gcc-5-branch (as of now, i.e. r228958).  It requires
the -march=z196, and it hits us in multiple packages (the testcase extracted
from perl-DateTime, but e.g. also in qt3).  This -march level is the
default for us.