re PR target/87573 (error: could not split insn since r264877)

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.

From-SVN: r265019
This commit is contained in:
Uros Bizjak 2018-10-10 17:02:47 +02:00 committed by Uros Bizjak
parent 1f10b5b8db
commit 7be65e79f6
4 changed files with 30 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2018-10-10 Uros Bizjak <ubizjak@gmail.com>
PR target/87573
* config/i386/mmx.md (const_vector 0 -> mem splitter): New splitter.
2018-10-10 Jakub Jelinek <jakub@redhat.com>
PR target/87550

View File

@ -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;")

View File

@ -1,3 +1,8 @@
2018-10-10 Uros Bizjak <ubizjak@gmail.com>
PR target/87573
* gcc.target/i386/pr87573.c: New test.
2018-10-10 Jakub Jelinek <jakub@redhat.com>
PR target/87550

View File

@ -0,0 +1,12 @@
/* PR target/87573 */
/* { dg-do compile { target ia32 } } */
/* { dg-options "-O1 -mmmx -mno-sse" } */
typedef char __v8qi __attribute__((vector_size(8)));
__v8qi e;
void f (void)
{
e = (__v8qi) {0, 0, 0, 0, 0, 0, 0, 0};
}