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] to load sda base address on medium model of m32r


Hi Nick,

This patch is to add sda base address on medium model of m32r.
Please commit it.

Regards,

Kazuhiro Inaoka

gcc/ChangeLog

2005-03-08 Kazuhiro Inaoka <inaoka.lazuhiro@renesas.com>

	* config/m32r/m32r.md: Added load_sda_base_32 to load
	sda base address on medium model.


Index: m32r.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/m32r/m32r.md,v
retrieving revision 1.50
diff -u -r1.50 m32r.md
--- m32r.md	15 Dec 2004 12:13:07 -0000	1.50
+++ m32r.md	8 Mar 2005 09:11:31 -0000
@@ -503,6 +503,14 @@
     operands[2] = gen_reg_rtx (SImode);
 }")
 
+(define_insn "*load_sda_base_32"
+  [(set (match_operand:SI 0 "register_operand" "=r")
+	(unspec:SI [(const_int 0)] UNSPEC_LOAD_SDA_BASE))]
+  "TARGET_ADDR32"
+  "seth %0,%#shigh(_SDA_BASE_)\;add3 %0,%0,%#low(_SDA_BASE_)"
+  [(set_attr "type" "multi")
+   (set_attr "length" "8")])
+
 (define_insn "*load_sda_base"
   [(set (match_operand:SI 0 "register_operand" "=r")
 	(unspec:SI [(const_int 0)] UNSPEC_LOAD_SDA_BASE))]

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