This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Enable push_fpscr. pop_fpscr for SH2E
- From: "Dhananjay R. Deshpande" <dhananjayd at kpit dot com>
- To: <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 31 Jan 2003 14:03:01 +0530
- Subject: [PATCH] Enable push_fpscr. pop_fpscr for SH2E
Hi,
With the recent SH2E port checked in, push_fpscr, pop_fpscr and fpu_switch need to be enabled for SH2E.
Refer http://gcc.gnu.org/ml/gcc-patches/2002-12/msg00227.html
Changelog
2003-01-31 Dhananjay Deshpande <dhananjayd@kpit.com>
* gcc/config/sh/sh.md (define_expand "push_fpscr"): Enable for TARGET_SH2E.
(define_expand "pop_fpscr"): Likewise.
(define_insn "fpu_switch"): Likewise.
==========================================================================
--- sh.md.old Fri Jan 31 11:02:45 2003
+++ sh.md Fri Jan 31 11:03:30 2003
@@ -3340,7 +3340,7 @@
(define_expand "push_fpscr"
[(const_int 0)]
- "TARGET_SH3E"
+ "TARGET_SH2E"
"
{
rtx insn = emit_insn (gen_fpu_switch (gen_rtx (MEM, PSImode,
@@ -3353,7 +3353,7 @@
(define_expand "pop_fpscr"
[(const_int 0)]
- "TARGET_SH3E"
+ "TARGET_SH2E"
"
{
rtx insn = emit_insn (gen_fpu_switch (get_fpscr_rtx (),
@@ -7889,7 +7889,7 @@
(define_insn "fpu_switch"
[(set (match_operand:PSI 0 "general_movdst_operand" "=c,c,r,c,c,r,m,r,<")
(match_operand:PSI 1 "general_movsrc_operand" "c,>,m,m,r,r,r,!c,c"))]
- "TARGET_SH3E
+ "TARGET_SH2E
&& (! reload_completed
|| true_regnum (operands[0]) != FPSCR_REG
|| GET_CODE (operands[1]) != MEM
==========================================================================
Regards,
Dhananjay