Patchwork [i386] : Fix i386.md:5807: warning: source missing a mode?

login
register
mail settings
Submitter Uros Bizjak
Date July 28, 2011, 7:17 a.m.
Message ID <CAFULd4YGtbXSgx8P35qzRyPZJgnDepCad=7XLq8F4RnuzMJ9dQ@mail.gmail.com>
Download mbox | patch
Permalink /patch/107186/
State New
Headers show

Comments

Uros Bizjak - July 28, 2011, 7:17 a.m.
Hello!

2011-07-28  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.

Tested on x86_64-pc-linux-gnu, committed to mainline.

Uros.

Patch

Index: i386.md
===================================================================
--- i386.md	(revision 176858)
+++ i386.md	(working copy)
@@ -5806,8 +5806,8 @@ 
 ;; Convert add to the lea pattern to avoid flags dependency.
 (define_split
   [(set (match_operand:SWI 0 "register_operand" "")
-	(plus (match_operand:SWI 1 "register_operand" "")
-              (match_operand:SWI 2 "<nonmemory_operand>" "")))
+	(plus:SWI (match_operand:SWI 1 "register_operand" "")
+		  (match_operand:SWI 2 "<nonmemory_operand>" "")))
    (clobber (reg:CC FLAGS_REG))]
   "reload_completed && ix86_lea_for_add_ok (insn, operands)"
   [(const_int 0)]