[Bug target/87573] [9 Regression] error: could not split insn since r264877

2018-10-10 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87573

Uroš Bizjak  changed:

   What|Removed |Added

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

--- Comment #4 from Uroš Bizjak  ---
Fixed.

[Bug target/87573] [9 Regression] error: could not split insn since r264877

2018-10-10 Thread uros at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87573

--- Comment #3 from uros at gcc dot gnu.org ---
Author: uros
Date: Wed Oct 10 15:02:47 2018
New Revision: 265019

URL: https://gcc.gnu.org/viewcvs?rev=265019=gcc=rev
Log:
PR target/87573
* config/i386/mmx.md (const_vector 0 -> mem splitter): New splitter.

testsuite/ChangeLog:

PR target/87573
* gcc.target/i386/pr87573.c: New test.


Added:
trunk/gcc/testsuite/gcc.target/i386/pr87573.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/mmx.md
trunk/gcc/testsuite/ChangeLog

[Bug target/87573] [9 Regression] error: could not split insn since r264877

2018-10-10 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87573

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |9.0

[Bug target/87573] [9 Regression] error: could not split insn since r264877

2018-10-10 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87573

--- Comment #2 from Uroš Bizjak  ---
Patch in testing:

--cut here--
diff --git a/gcc/config/i386/mmx.md b/gcc/config/i386/mmx.md
index 539671ce4be5..e60b2296ab6b 100644
--- a/gcc/config/i386/mmx.md
+++ b/gcc/config/i386/mmx.md
@@ -217,7 +217,14 @@

 (define_split
   [(set (match_operand:MMXMODE 0 "nonimmediate_gr_operand")
-(match_operand:MMXMODE 1 "general_gr_operand"))]
+(match_operand:MMXMODE 1 "nonimmediate_gr_operand"))]
+  "!TARGET_64BIT && reload_completed"
+  [(const_int 0)]
+  "ix86_split_long_move (operands); DONE;")
+
+(define_split
+  [(set (match_operand:MMXMODE 0 "nonimmediate_gr_operand")
+(match_operand:MMXMODE 1 "const0_operand"))]
   "!TARGET_64BIT && reload_completed"
   [(const_int 0)]
   "ix86_split_long_move (operands); DONE;")
--cut here--

[Bug target/87573] [9 Regression] error: could not split insn since r264877

2018-10-10 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87573

Uroš Bizjak  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |ubizjak at gmail dot com

--- Comment #1 from Uroš Bizjak  ---
I was expecting a couple of these errors, since MMX constant moves were
effectively disabled before the patch. Looking into it.

[Bug target/87573] [9 Regression] error: could not split insn since r264877

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

Martin Liška  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2018-10-10
  Known to work||8.2.0
 Ever confirmed|0   |1
  Known to fail||9.0