[Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le

2019-02-14 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86684

--- Comment #15 from Segher Boessenkool  ---
Author: segher
Date: Thu Feb 14 19:03:54 2019
New Revision: 268890

URL: https://gcc.gnu.org/viewcvs?rev=268890&root=gcc&view=rev
Log:
Backport from trunk
2018-08-31  Segher Boessenkool  

PR target/86684
PR target/87149
* config/rs6000/rs6000.md (lrounddi2): Gate on TARGET_FPRND.

Modified:
branches/gcc-8-branch/gcc/ChangeLog
branches/gcc-8-branch/gcc/config/rs6000/rs6000.md

[Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le

2018-09-27 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86684

Segher Boessenkool  changed:

   What|Removed |Added

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

--- Comment #14 from Segher Boessenkool  ---
I'm closing this as fixed.  Please reopen if you want a backport (of the
#c13 part).  Thanks!

[Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le

2018-08-31 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86684

--- Comment #13 from Segher Boessenkool  ---
Author: segher
Date: Fri Aug 31 08:52:13 2018
New Revision: 264011

URL: https://gcc.gnu.org/viewcvs?rev=264011&root=gcc&view=rev
Log:
rs6000: Make lrounddi2 depend on TARGET_FPRND (PR86684)

TARGET_FPRND should be on for everything ISA 2.04 and later, and
TARGET_VSX implies ISA 2.06 or later; but it is possible to disable
TARGET_FPRND (separately via -mno-fprnd, but also implicitly)
currently, and then things fall down.  This patch makes things not
fall down.


PR target/86684
PR target/87149
* config/rs6000/rs6000.md (lrounddi2): Gate on TARGET_FPRND.

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

[Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le

2018-08-22 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86684

Segher Boessenkool  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |segher at gcc dot 
gnu.org

[Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le

2018-08-10 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86684

--- Comment #12 from Segher Boessenkool  ---
So, ignoring all the configury stuff: the problem is that TARGET_VSX does
not imply TARGET_FPRND.  It should.

[Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le

2018-08-10 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86684

Segher Boessenkool  changed:

   What|Removed |Added

 Target|ppc64le-linux-gnu   |powerpc*-*-*
   Host|x86_64-pc-linux-gnu |

--- Comment #11 from Segher Boessenkool  ---
So it seems ppc64le-linux is NOT equivalent to powerpc64le-linux: it fails
here, without the -mno-fprnd flag.

[Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le

2018-08-10 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86684

--- Comment #10 from Segher Boessenkool  ---
Also happens on native builds:

~/build/tot/gcc/f951 -quiet -Wall -W -O2 bounds_check_19.f90 -mabi=elfv2
-mlittle -mno-fprnd

Error: unrecognizable insn:
(insn 79 78 80 6 (set (reg:DI 175)
(unspec:DI [
(reg:SF 176)
] UNSPEC_FCTID)) "bounds_check_19.f90":22 -1
 (nil))
during RTL pass: vregs

[Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le

2018-08-10 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86684

Segher Boessenkool  changed:

   What|Removed |Added

 Status|WAITING |NEW

--- Comment #9 from Segher Boessenkool  ---
I found the problem.  You need -mno-fprnd to reproduce this.  Somehow you
get this by default.

Confirmed.

[Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le

2018-08-10 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86684

--- Comment #8 from Martin Liška  ---
(In reply to Segher Boessenkool from comment #7)
> Something wrong with that tarball then, maybe?  Please try trunk.

I see it day by day on my periodic tester machine that pulls GCC tip.

[Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le

2018-08-10 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86684

--- Comment #7 from Segher Boessenkool  ---
Something wrong with that tarball then, maybe?  Please try trunk.

[Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le

2018-08-10 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86684

--- Comment #6 from Martin Liška  ---
(In reply to Segher Boessenkool from comment #5)
> I cannot reproduce this, not on gcc14 either.  I notice you use
> ppc64le-linux,
> while the canonical name is powerpc64le-linux; maybe that matters?

No it does not matter.

[Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le

2018-08-09 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86684

Segher Boessenkool  changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
   Last reconfirmed|2018-07-26 00:00:00 |2018-08-09
 Ever confirmed|0   |1

--- Comment #5 from Segher Boessenkool  ---
I cannot reproduce this, not on gcc14 either.  I notice you use ppc64le-linux,
while the canonical name is powerpc64le-linux; maybe that matters?

[Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le

2018-07-30 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86684

--- Comment #4 from Martin Liška  ---
(In reply to Segher Boessenkool from comment #3)
> I did try that.
> 
> Can you please give your config?  Some repro instructions, maybe on a given
> cfarm machine?

I used gcc14 machine. Download latest tarbal and:

$ ../configure --enable-languages=c,c++,fortran --disable-multilib
--prefix=/home/marxin/bin/gcc2 --disable-bootstrap --disable-libsanitizer
--target=ppc64le-linux-gnu
$ make -j8 all-host -k CFLAGS="-O0 -g" CXXFLAGS="-O0 -g"
$ ./xgcc -B.
/home/marxin//gcc/gcc-master/gcc/testsuite/gfortran.dg/bounds_check_19.f90

Should be visible. Thanks.

[Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le

2018-07-27 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86684

--- Comment #3 from Segher Boessenkool  ---
I did try that.

Can you please give your config?  Some repro instructions, maybe on a given
cfarm machine?

[Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le

2018-07-27 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86684

--- Comment #2 from Martin Liška  ---
It's only visible with cross compiler. Can you please test that?

[Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le

2018-07-26 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86684

--- Comment #1 from Segher Boessenkool  ---
I cannot reproduce this, either.

[Bug target/86684] ICE in extract_insn, at recog.c:2304 on ppc64le

2018-07-26 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86684

Martin Liška  changed:

   What|Removed |Added

   Last reconfirmed||2018-7-26
   Target Milestone|--- |9.0