diff mbox

Add FLAGS_REG clobber to kxnor<mode>

Message ID CAFULd4Y1nFMDpE0P16okpMK8m_u9mo38FQfP4_Q_D+2qofJxgQ@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak Oct. 21, 2013, 11:13 a.m. UTC
Hello!

We are splitting it to normal XOR that includes clobber, so better
start with the clobber from the beginning.

2013-10-20  Uros Bizjak  <ubizjak@gmail.com>

    * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.

Tested on x86_64-pc-linux-gnu and committed to mainline SVN.

Uros.
diff mbox

Patch

Index: i386.md
===================================================================
--- i386.md	(revision 203885)
+++ i386.md	(working copy)
@@ -8254,7 +8253,8 @@ 
 	(not:SWI12
 	  (xor:SWI12
 	    (match_operand:SWI12 1 "register_operand" "0,Yk")
-	    (match_operand:SWI12 2 "register_operand" "r,Yk"))))]
+	    (match_operand:SWI12 2 "register_operand" "r,Yk"))))
+   (clobber (reg:CC FLAGS_REG))]
   "TARGET_AVX512F"
   "@
    #
@@ -8268,15 +8268,15 @@ 
 	(not:SWI12
 	  (xor:SWI12
 	    (match_dup 0)
-	    (match_operand:SWI12 1 "general_reg_operand"))))]
+	    (match_operand:SWI12 1 "general_reg_operand"))))
+   (clobber (reg:CC FLAGS_REG))]
   "TARGET_AVX512F && reload_completed"
    [(parallel [(set (match_dup 0)
 		    (xor:HI (match_dup 0)