diff mbox

[i386] : Mark AVX maskstore memory operand as read-written

Message ID CAFULd4YgGwujQMz_KoSPxTa95TwSNVcp4iu3fCTibn6+5K3L1Q@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak Nov. 6, 2012, 6:58 p.m. UTC
Hello!

We don't mark memory operand 0 of AVX maskstore insn as read-written.

2012-11-06  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/sse.md
	(<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Mark operand 0
	as read and written by the instruction.

Tested on x86_64-pc-linux-gnu, committed to mainline SVN, will be
backported to 4.7 branch.

Uros.
diff mbox

Patch

Index: config/i386/sse.md
===================================================================
--- config/i386/sse.md	(revision 193243)
+++ config/i386/sse.md	(working copy)
@@ -11067,7 +11067,7 @@ 
    (set_attr "mode" "<sseinsnmode>")])
 
 (define_insn "<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>"
-  [(set (match_operand:V48_AVX2 0 "memory_operand" "=m")
+  [(set (match_operand:V48_AVX2 0 "memory_operand" "+m")
 	(unspec:V48_AVX2
 	  [(match_operand:<sseintvecmode> 1 "register_operand" "x")
 	   (match_operand:V48_AVX2 2 "register_operand" "x")