re PR target/80819 (Useless store to the stack in _mm_set_epi64x with SSE4 -mno-avx)

PR target/80819
	* config/i386/sse.md (vec_concatv2di): Remove * from (=Yr,0,*rm)
	alternative.

	* gcc.target/i386/pr80819-1.c: New test.
	* gcc.target/i386/pr80819-2.c: New test.

From-SVN: r255226
This commit is contained in:
Jakub Jelinek 2017-11-29 09:40:13 +01:00 committed by Jakub Jelinek
parent b7c44c8fd2
commit 4c42d640b2
5 changed files with 39 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2017-11-29 Jakub Jelinek <jakub@redhat.com>
PR target/80819
* config/i386/sse.md (vec_concatv2di): Remove * from (=Yr,0,*rm)
alternative.
2017-11-28 David Malcolm <dmalcolm@redhat.com>
* diagnostic-show-locus.c (layout::print_trailing_fixits): Handle

View File

@ -13919,7 +13919,7 @@
(match_operand:DI 1 "nonimmediate_operand"
" 0, 0,x ,Yv,r ,vm,?!*Yn,0,Yv,0,0,v")
(match_operand:DI 2 "vector_move_operand"
"*rm,rm,rm,rm,C ,C ,C ,x,Yv,x,m,m")))]
" rm,rm,rm,rm,C ,C ,C ,x,Yv,x,m,m")))]
"TARGET_SSE"
"@
pinsrq\t{$1, %2, %0|%0, %2, 1}

View File

@ -1,3 +1,9 @@
2017-11-29 Jakub Jelinek <jakub@redhat.com>
PR target/80819
* gcc.target/i386/pr80819-1.c: New test.
* gcc.target/i386/pr80819-2.c: New test.
2017-11-28 David Malcolm <dmalcolm@redhat.com>
* gcc.dg/plugin/diagnostic-test-show-locus-bw.c

View File

@ -0,0 +1,13 @@
/* PR target/80819 */
/* { dg-do compile { target { ! ia32 } } } */
/* { dg-options "-O2 -msse4 -mno-avx -mtune=haswell -masm=att" } */
typedef unsigned long long V __attribute__((vector_size (16)));
V
foo (unsigned long long x, unsigned long long y)
{
return (V) { x, y };
}
/* { dg-final { scan-assembler-not "movq\[ \t]*%rsi, \[-0-9]*\\(" } } */

View File

@ -0,0 +1,13 @@
/* PR target/80819 */
/* { dg-do compile { target { ! ia32 } } } */
/* { dg-options "-O2 -msse4 -mno-avx -mtune=generic -masm=att" } */
typedef unsigned long long V __attribute__((vector_size (16)));
V
foo (unsigned long long x, unsigned long long y)
{
return (V) { x, y };
}
/* { dg-final { scan-assembler-not "movq\[ \t]*%rsi, \[-0-9]*\\(" } } */