Patchwork negv{32qi,16hi,8si,4di}

login
register
mail settings
Submitter Jakub Jelinek
Date Oct. 14, 2011, 2:19 p.m.
Message ID <20111014141953.GZ2210@tyan-ft48-01.lab.bos.redhat.com>
Download mbox | patch
Permalink /patch/119800/
State New
Headers show

Comments

Jakub Jelinek - Oct. 14, 2011, 2:19 p.m.
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.


	Jakub
Richard Henderson - Oct. 14, 2011, 3:20 p.m.
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~

Patch

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