public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] negv{32qi,16hi,8si,4di}
@ 2011-10-14 14:57 Jakub Jelinek
  2011-10-14 15:45 ` Richard Henderson
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2011-10-14 14:57 UTC (permalink / raw)
  To: Richard Henderson, Uros Bizjak; +Cc: gcc-patches

Hi!

This patch allows to vectorize negations using 32-byte vectors.

2011-10-14  Jakub Jelinek  <jakub@redhat.com>

	* config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
	of VI_128.

--- gcc/config/i386/sse.md.jj	2011-10-14 13:05:58.000000000 +0200
+++ gcc/config/i386/sse.md	2011-10-14 13:56:55.000000000 +0200
@@ -4860,10 +4860,10 @@ (define_insn "*vec_concatv2df"
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
 (define_expand "neg<mode>2"
-  [(set (match_operand:VI_128 0 "register_operand" "")
-	(minus:VI_128
+  [(set (match_operand:VI_AVX2 0 "register_operand" "")
+	(minus:VI_AVX2
 	  (match_dup 2)
-	  (match_operand:VI_128 1 "nonimmediate_operand" "")))]
+	  (match_operand:VI_AVX2 1 "nonimmediate_operand" "")))]
   "TARGET_SSE2"
   "operands[2] = force_reg (<MODE>mode, CONST0_RTX (<MODE>mode));")
 

	Jakub

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] negv{32qi,16hi,8si,4di}
  2011-10-14 14:57 [PATCH] negv{32qi,16hi,8si,4di} Jakub Jelinek
@ 2011-10-14 15:45 ` Richard Henderson
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 2011-10-14 15:45 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Uros Bizjak, gcc-patches

On 10/14/2011 07:19 AM, Jakub Jelinek wrote:
> 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
> 	of VI_128.

Ok.


r~

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-14 15:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-14 14:57 [PATCH] negv{32qi,16hi,8si,4di} Jakub Jelinek
2011-10-14 15:45 ` Richard Henderson

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).