This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH : ColdFire : Allow addq/subq to memory


Below is a small patch improving ColdFire code generation.
Feel free to apply.

Best Regards

Philippe

2005-08-26  Philippe De Muyter  <phdm@macqel.be>

	* config/m68k/m68k.md (*addsi3_5200): Allow addq/subq to memory
	operands.
	
--- config/m68k/m68k.md	2005-08-25 10:59:51.000000000 +0200
+++ config/m68k/m68k.md	2005-08-26 11:24:33.000000000 +0200
@@ -1861,7 +1887,7 @@
 (define_insn "*addsi3_5200"
   [(set (match_operand:SI 0 "nonimmediate_operand" "=m,?a,?a,r")
 	(plus:SI (match_operand:SI 1 "general_operand" "%0,a,rJK,0")
-		 (match_operand:SI 2 "general_src_operand" "d,rJK,a,mrIKLi")))]
+		 (match_operand:SI 2 "general_src_operand" "dIL,rJK,a,mrIKLi")))]
   "TARGET_COLDFIRE"
   "* return output_addsi3 (operands);")
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]