diff mbox

[rl78] allow global+acc

Message ID 201408150252.s7F2qwS2006220@greed.delorie.com
State New
Headers show

Commit Message

DJ Delorie Aug. 15, 2014, 2:52 a.m. UTC
Minor optimization.  Committed.

	* config/rl78/rl78-real.md (addqi3_real): Allow adding global
	variables to the accumulator.
diff mbox

Patch

Index: config/rl78/rl78-real.md
===================================================================
--- config/rl78/rl78-real.md	(revision 213996)
+++ config/rl78/rl78-real.md	(working copy)
@@ -96,13 +96,13 @@ 
 
 ;;---------- Arithmetic ------------------------
 
 (define_insn "*addqi3_real"
   [(set (match_operand:QI          0 "nonimmediate_operand"  "=rvWabWhlWh1,rvWabWhlWh1,a,*bcdehl")
 	(plus:QI (match_operand:QI 1 "general_operand"  "%0,0,0,0")
-		 (match_operand:QI 2 "general_operand" "K,L,RWhlWh1i,a")))
+		 (match_operand:QI 2 "general_operand" "K,L,RWhlWh1Wabi,a")))
    ]
   "rl78_real_insns_ok ()"
   "@
     inc\t%0
     dec\t%0
     add\t%0, %2