[Bug target/58158] [4.8/4.9 Regression] ICE with conditional moves on GPRs with a floating point conditional on mipsel with loongson2f

2015-03-06 Thread biergaizi2009 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58158

--- Comment #20 from Tom Li biergaizi2009 at gmail dot com ---
Great job, I'll test it.


[Bug target/58158] [4.8/4.9 Regression] ICE with conditional moves on GPRs with a floating point conditional on mipsel with loongson2f

2013-12-31 Thread biergaizi2009 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58158

--- Comment #12 from Tom Li biergaizi2009 at gmail dot com ---
And I just applied Aaro Koskinen's patch on gcc 4.8.2, recompile gcc and
resolve this issue.

Patch for 4.8.2:

--- gcc-4.8.2/gcc/config/mips/mips.md   2013-02-25 21:53:16.0 +0800
+++ gcc-4.8.2-fixed/gcc/config/mips/mips.md 2013-12-31 20:23:26.021484375
+0800
@@ -6715,6 +6715,9 @@
  (match_operand:GPR 3 reg_or_0_operand)))]
   ISA_HAS_CONDMOVE
 {
+  if (!ISA_HAS_FP_CONDMOVE 
+  GET_MODE_CLASS (GET_MODE (XEXP (operands[1], 0))) != MODE_INT)
+FAIL;
   mips_expand_conditional_move (operands);
   DONE;
 })


[Bug target/58158] [4.8/4.9 Regression] ICE with conditional moves on GPRs with a floating point conditional on mipsel with loongson2f

2013-12-30 Thread biergaizi2009 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58158

--- Comment #11 from Tom Li biergaizi2009 at gmail dot com ---
My Gentoo system is nearly broken because of this bug :(

I'm going to report it to Loongson's mailing list.


[Bug c/59619] New: gstaudiotestsrc.c:479:1: error: unrecognizable insn: DEFINE_SQUARE (int16, 32767.0);

2013-12-28 Thread biergaizi2009 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59619

Bug ID: 59619
   Summary: gstaudiotestsrc.c:479:1: error: unrecognizable insn:
DEFINE_SQUARE (int16, 32767.0);
   Product: gcc
   Version: 4.8.2
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: biergaizi2009 at gmail dot com

mips64el-unknown-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  
-save-temps -march=loongson2f -mplt -Wa,-mfix-loongson2f-nop -pipe
-fomit-frame-pointer -mno-branch-likely -pthread -I/usr/include/glib-2.0
-I/usr/lib32/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10
-I/usr/include/glib-2.0 -I/usr/lib32/glib-2.0/include -I/usr/include/libxml2 
-DG_THREADS_MANDATORY -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT -Wall
-Wdeclaration-after-statement -Wvla -Wpointer-arith -Wmissing-declarations
-Wmissing-prototypes -Wredundant-decls -Wundef -Wwrite-strings
-Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-include-dirs
-Waddress -Waggregate-return -Wno-multichar -Wnested-externs   -pthread
-I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0
-I/usr/lib32/glib-2.0/include -I/usr/include/libxml2  -O2 -march=loongson2f
-mplt -Wa,-mfix-loongson2f-nop -pipe -fomit-frame-pointer -mno-branch-likely -c
-o libgstaudiotestsrc_la-gstaudiotestsrc.lo `test -f 'gstaudiotestsrc.c' ||
echo './'`gstaudiotestsrc.c
mips64el-unknown-linux-gnu-gcc: warning: -pipe ignored because -save-temps
specified
gstaudiotestsrc.c: In function ‘gst_audio_test_src_create_square_int16’:
gstaudiotestsrc.c:479:1: error: unrecognizable insn:
 DEFINE_SQUARE (int16, 32767.0);
 ^  
(insn 106 105 107 8 (set (reg:SI 284)   
(if_then_else:SI (ne:CC (reg:CC 67 $fcc0)   
(const_int 0 [0]))  
(reg:SI 249 [ iftmp.184 ])  
(reg:SI 251 [ iftmp.184 ]))) -1 
 (nil)) 
gstaudiotestsrc.c:479:1: internal compiler error: in extract_insn, at
recog.c:2154 
Please submit a full bug report,
with preprocessed source if appropriate.

[Bug c/59620] New: gstaudiotestsrc.c:479:1: error: unrecognizable insn: DEFINE_SQUARE (int16, 32767.0);

2013-12-28 Thread biergaizi2009 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59620

Bug ID: 59620
   Summary: gstaudiotestsrc.c:479:1: error: unrecognizable insn:
DEFINE_SQUARE (int16, 32767.0);
   Product: gcc
   Version: 4.8.2
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: biergaizi2009 at gmail dot com

mips64el-unknown-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  
-save-temps -march=loongson2f -mplt -Wa,-mfix-loongson2f-nop -pipe
-fomit-frame-pointer -mno-branch-likely -pthread -I/usr/include/glib-2.0
-I/usr/lib32/glib-2.0/include -pthread -I/usr/include/gstreamer-0.10
-I/usr/include/glib-2.0 -I/usr/lib32/glib-2.0/include -I/usr/include/libxml2 
-DG_THREADS_MANDATORY -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT -Wall
-Wdeclaration-after-statement -Wvla -Wpointer-arith -Wmissing-declarations
-Wmissing-prototypes -Wredundant-decls -Wundef -Wwrite-strings
-Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-include-dirs
-Waddress -Waggregate-return -Wno-multichar -Wnested-externs   -pthread
-I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0
-I/usr/lib32/glib-2.0/include -I/usr/include/libxml2  -O2 -march=loongson2f
-mplt -Wa,-mfix-loongson2f-nop -pipe -fomit-frame-pointer -mno-branch-likely -c
-o libgstaudiotestsrc_la-gstaudiotestsrc.lo `test -f 'gstaudiotestsrc.c' ||
echo './'`gstaudiotestsrc.c
mips64el-unknown-linux-gnu-gcc: warning: -pipe ignored because -save-temps
specified
gstaudiotestsrc.c: In function ‘gst_audio_test_src_create_square_int16’:
gstaudiotestsrc.c:479:1: error: unrecognizable insn:
 DEFINE_SQUARE (int16, 32767.0);
 ^  
(insn 106 105 107 8 (set (reg:SI 284)   
(if_then_else:SI (ne:CC (reg:CC 67 $fcc0)   
(const_int 0 [0]))  
(reg:SI 249 [ iftmp.184 ])  
(reg:SI 251 [ iftmp.184 ]))) -1 
 (nil)) 
gstaudiotestsrc.c:479:1: internal compiler error: in extract_insn, at
recog.c:2154 
Please submit a full bug report,
with preprocessed source if appropriate.

[Bug c/59620] gstaudiotestsrc.c:479:1: error: unrecognizable insn: DEFINE_SQUARE (int16, 32767.0);

2013-12-28 Thread biergaizi2009 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59620

--- Comment #1 from Tom Li biergaizi2009 at gmail dot com ---
Created attachment 31534
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=31534action=edit
preprocessed source


[Bug c/59620] gstaudiotestsrc.c:479:1: error: unrecognizable insn: DEFINE_SQUARE (int16, 32767.0);

2013-12-28 Thread biergaizi2009 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59620

--- Comment #2 from Tom Li biergaizi2009 at gmail dot com ---
Using built-in specs.
COLLECT_GCC=/usr/mips64el-unknown-linux-gnu/gcc-bin/4.8.2/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/mips64el-unknown-linux-gnu/4.8.2/lto-wrapper
Target: mips64el-unknown-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.8.2/work/gcc-4.8.2/configure
--prefix=/usr --bindir=/usr/mips64el-unknown-linux-gnu/gcc-bin/4.8.2
--includedir=/usr/lib/gcc/mips64el-unknown-linux-gnu/4.8.2/include
--datadir=/usr/share/gcc-data/mips64el-unknown-linux-gnu/4.8.2
--mandir=/usr/share/gcc-data/mips64el-unknown-linux-gnu/4.8.2/man
--infodir=/usr/share/gcc-data/mips64el-unknown-linux-gnu/4.8.2/info
--with-gxx-include-dir=/usr/lib/gcc/mips64el-unknown-linux-gnu/4.8.2/include/g++-v4
--host=mips64el-unknown-linux-gnu --build=mips64el-unknown-linux-gnu
--disable-altivec --disable-fixed-point --without-cloog --disable-lto
--enable-nls --without-included-gettext --with-system-zlib --enable-obsolete
--disable-werror --enable-secureplt --enable-multilib --enable-libmudflap
--disable-libssp --disable-libgomp
--with-python-dir=/share/gcc-data/mips64el-unknown-linux-gnu/4.8.2/python
--enable-checking=release --disable-libgcj --enable-libstdcxx-time
--disable-libquadmath --with-abi=n32 --enable-languages=c,c++ --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.8.2 p1.0,
pie-0.5.8'
Thread model: posix
gcc version 4.8.2 (Gentoo 4.8.2 p1.0, pie-0.5.8)