public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/redhat/heads/gcc-8-branch)] i386: Fix *vec_extractv2sf_1 and *vec_extractv2sf_1 shufps alternative [PR93828]
@ 2020-09-17 16:44 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2020-09-17 16:44 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:923e9ba9da63bc01efeb690009cf3fa843c467cb
commit 923e9ba9da63bc01efeb690009cf3fa843c467cb
Author: Uros Bizjak <ubizjak@gmail.com>
Date: Thu Feb 20 22:00:45 2020 +0100
i386: Fix *vec_extractv2sf_1 and *vec_extractv2sf_1 shufps alternative [PR93828]
shufps moves two of the four packed single-precision floating-point values
from *destination* operand (first operand) into the low quadword of the
destination operand. Match source operand to the destination.
PR target/93828
* config/i386/mmx.md (*vec_extractv2sf_1): Match source operand
to destination operand for shufps alternative.
(*vec_extractv2si_1): Ditto.
Diff:
---
gcc/ChangeLog | 7 +++++++
gcc/config/i386/mmx.md | 8 ++++----
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b83eb4e5d0a..681d02f87c8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2020-02-20 Uroš Bizjak <ubizjak@gmail.com>
+
+ PR target/93828
+ * config/i386/mmx.md (*vec_extractv2sf_1): Match source operand
+ to destination operand for shufps alternative.
+ (*vec_extractv2si_1): Ditto.
+
2020-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
* collect2.c (tool_cleanup): Avoid calling not signal-safe
diff --git a/gcc/config/i386/mmx.md b/gcc/config/i386/mmx.md
index f8575c63435..8fb355f03e3 100644
--- a/gcc/config/i386/mmx.md
+++ b/gcc/config/i386/mmx.md
@@ -608,13 +608,13 @@
(define_insn "*vec_extractv2sf_1"
[(set (match_operand:SF 0 "nonimmediate_operand" "=y,x,x,y,x,f,r")
(vec_select:SF
- (match_operand:V2SF 1 "nonimmediate_operand" " 0,x,x,o,o,o,o")
+ (match_operand:V2SF 1 "nonimmediate_operand" " 0,x,0,o,o,o,o")
(parallel [(const_int 1)])))]
"TARGET_MMX && !(MEM_P (operands[0]) && MEM_P (operands[1]))"
"@
punpckhdq\t%0, %0
%vmovshdup\t{%1, %0|%0, %1}
- shufps\t{$0xe5, %1, %0|%0, %1, 0xe5}
+ shufps\t{$0xe5, %0, %0|%0, %0, 0xe5}
#
#
#
@@ -1302,13 +1302,13 @@
(define_insn "*vec_extractv2si_1"
[(set (match_operand:SI 0 "nonimmediate_operand" "=y,x,x,y,x,r")
(vec_select:SI
- (match_operand:V2SI 1 "nonimmediate_operand" " 0,x,x,o,o,o")
+ (match_operand:V2SI 1 "nonimmediate_operand" " 0,x,0,o,o,o")
(parallel [(const_int 1)])))]
"TARGET_MMX && !(MEM_P (operands[0]) && MEM_P (operands[1]))"
"@
punpckhdq\t%0, %0
%vpshufd\t{$0xe5, %1, %0|%0, %1, 0xe5}
- shufps\t{$0xe5, %1, %0|%0, %1, 0xe5}
+ shufps\t{$0xe5, %0, %0|%0, %0, 0xe5}
#
#
#"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-09-17 16:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-17 16:44 [gcc(refs/vendors/redhat/heads/gcc-8-branch)] i386: Fix *vec_extractv2sf_1 and *vec_extractv2sf_1 shufps alternative [PR93828] Jakub Jelinek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).