This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] to load sda base address on medium model of m32r
- From: Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 08 Mar 2005 18:26:22 +0900
- Subject: [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))]