diff mbox

[rl78] extend set1/clr1 operands

Message ID 201507202321.t6KNLjWW012574@greed.delorie.com
State New
Headers show

Commit Message

DJ Delorie July 20, 2015, 11:21 p.m. UTC
Minor tweak to allow more addressing modes.  Committed.

	* config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
	(iorqi3_real): Likewise for set1.
diff mbox

Patch

Index: config/rl78/rl78-real.md
===================================================================
--- config/rl78/rl78-real.md	(revision 226022)
+++ config/rl78/rl78-real.md	(working copy)
@@ -191,13 +191,13 @@ 
                  (zero_extend:HI (match_operand:QI 2 "general_operand" "x"))))]
   "rl78_real_insns_ok () && !TARGET_G10"
   "mulu\t%2"
 )
 
 (define_insn "*andqi3_real"
-  [(set (match_operand:QI         0 "rl78_nonimmediate_operand"  "=Wsf,A,R,vWsa")
+  [(set (match_operand:QI         0 "rl78_nonimmediate_operand"  "=WsfWsaWhlWab,A,R,vWsa")
 	(and:QI (match_operand:QI 1 "rl78_general_operand"       "%0,0,0,0")
 		(match_operand:QI 2 "rl78_general_operand"       "IBqi,iRvWabWhbWh1Whl,A,i")))
    ]
   "rl78_real_insns_ok ()"
   "@
    clr1\t%0.%B2
@@ -205,13 +205,13 @@ 
    and\t%0, %2
    and\t%0, %2"
   [(set_attr "update_Z" "*,update_Z,update_Z,update_Z")]
 )
 
 (define_insn "*iorqi3_real"
-  [(set (match_operand:QI         0 "rl78_nonimmediate_operand"  "=Wsf,A,R,vWsa")
+  [(set (match_operand:QI         0 "rl78_nonimmediate_operand"  "=WsfWsaWhlWab,A,R,vWsa")
 	(ior:QI (match_operand:QI 1 "rl78_general_operand"       "%0,0,0,0")
 		(match_operand:QI 2 "rl78_general_operand"       "Ibqi,iRvWabWhbWh1Whl,A,i")))
    ]
   "rl78_real_insns_ok ()"
   "@
    set1\t%0.%B2