[Bug target/58158] internal compiler error: in extract_insn, at recog.c:2150 while compiling ImageMagick on mipsel

2013-08-22 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58158

Andrew Pinski pinskia at gcc dot gnu.org changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
 Target|mipsel-linux-gnu|mipsel-linux-gnu
   ||(loongson2f)

--- Comment #5 from Andrew Pinski pinskia at gcc dot gnu.org ---
This is a loongson2f specific bug in the back-end.  It works correctly for
-march=octeon/-march=mips32/-march=mips64 .


[Bug target/58158] internal compiler error: in extract_insn, at recog.c:2150 while compiling ImageMagick on mipsel

2013-08-22 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58158

Andrew Pinski pinskia at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2013-08-22
   Host|mipsel-linux-gnu|
 Ever confirmed|0   |1
  Build|i486-linux-gnu (gcc (Debian |
   |4.8.1-6) 4.8.1) |

--- Comment #6 from Andrew Pinski pinskia at gcc dot gnu.org ---
The backend says we have conditional moves on the floating point CC modes and
expands it that way but really the target says we don't and it causes the ICE.

Since it is only loongson2f only bug I am not going to fix it.  I will let the
loongson maintainer fix it since I don't know what loongson2f really has when
it comes to conditional moves.

Confirmed.


[Bug target/58158] internal compiler error: in extract_insn, at recog.c:2150 while compiling ImageMagick on mipsel

2013-08-16 Thread aaro.koskinen at iki dot fi
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58158

Aaro Koskinen aaro.koskinen at iki dot fi changed:

   What|Removed |Added

  Known to work||4.7.3
  Known to fail||4.8.0, 4.8.1

--- Comment #2 from Aaro Koskinen aaro.koskinen at iki dot fi ---
Reproducible also with 4.8.0 but not with 4.7.3.


[Bug target/58158] internal compiler error: in extract_insn, at recog.c:2150 while compiling ImageMagick on mipsel

2013-08-16 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58158

Mikael Pettersson mikpe at it dot uu.se changed:

   What|Removed |Added

 CC||mikpe at it dot uu.se,
   ||pinskia at gcc dot gnu.org

--- Comment #3 from Mikael Pettersson mikpe at it dot uu.se ---
Started with the Improve COND_EXPR expansion patch in r187183.  Still occurs
with recent trunk and head of 4.8 branch.  Author CC:d.


[Bug target/58158] internal compiler error: in extract_insn, at recog.c:2150 while compiling ImageMagick on mipsel

2013-08-16 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58158

--- Comment #4 from Andrew Pinski pinskia at gcc dot gnu.org ---
(In reply to Mikael Pettersson from comment #3)
 Started with the Improve COND_EXPR expansion patch in r187183.  Still
 occurs with recent trunk and head of 4.8 branch.  Author CC:d.

That means it was exposed by that.  We have had many target (PPC, x86, and arm)
specific bugs due to this patch too.  This is not surprising we have one in
MIPS too.  Though I did test on mips64 (only n64 and n32 and not loongson
though).


[Bug target/58158] internal compiler error: in extract_insn, at recog.c:2150 while compiling ImageMagick on mipsel

2013-08-15 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58158

Andrew Pinski pinskia at gcc dot gnu.org changed:

   What|Removed |Added

   Severity|major   |normal


[Bug target/58158] internal compiler error: in extract_insn, at recog.c:2150 while compiling ImageMagick on mipsel

2013-08-15 Thread aaro.koskinen at iki dot fi
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58158

--- Comment #1 from Aaro Koskinen aaro.koskinen at iki dot fi ---
A simplified reproducer:

$ cat bar.c
extern void foo(void);

static inline double max(const double x, const double y)
{
return (x  y) ? x : y;
}

void bar(int d)
{
int i;

for (i = 0; i  (int)max(100.0 * d, 1.0); i++) {
foo();
}
}
$ gcc -c -O2 bar.c
bar.c: In function 'bar':
bar.c:15:1: error: unrecognizable insn:
 }
 ^
(insn 23 22 24 2 (set (reg:SI 203 [ D.1511 ])
(if_then_else:SI (ne:CC (reg:CC 67 $fcc0)
(const_int 0 [0]))
(reg:SI 203 [ D.1511 ])
(reg:SI 206))) -1
 (nil))
bar.c:15:1: internal compiler error: in extract_insn, at recog.c:2150
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.