sh.md (reload_outsf): Generate recognizable patterns for TARGET_SH3E.
authorBernd Schmidt <bernds@redhat.com>
Tue, 9 Jan 2001 14:23:50 +0000 (14:23 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Tue, 9 Jan 2001 14:23:50 +0000 (14:23 +0000)
* sh.md (reload_outsf): Generate recognizable patterns for
TARGET_SH3E.

From-SVN: r38832

gcc/ChangeLog
gcc/config/sh/sh.md

index 0c297ec2dea3d0ba7c4ce029f5f964afadb6b6a9..a1aece551d909ed29a4cc63e9442035081b6758c 100644 (file)
@@ -1,3 +1,8 @@
+2001-01-09  Bernd Schmidt  <bernds@redhat.com>
+
+       * sh.md (reload_outsf): Generate recognizable patterns for
+       TARGET_SH3E.
+
 2001-01-09  Neil Booth  <neil@daikokuya.demon.co.uk>
 
        * c-lang.c (lang_hooks): Update.
index 1acbdf345855f2e06c17cd42fd17379f183e60cb..dbd9759c36f43ea22d67f350939aa1056e8080e7 100644 (file)
                   (match_dup 2))
              (clobber (scratch:SI))])]
   ""
-  "")
+  "
+{
+  if (TARGET_SH3E)
+    {
+      emit_insn (gen_movsf_ie (operands[2], operands[1], get_fpscr_rtx ()));
+      emit_insn (gen_movsf_ie (operands[0], operands[2], get_fpscr_rtx ()));
+      DONE;
+    }
+}")
 
 ;; If the output is a register and the input is memory or a register, we have
 ;; to be careful and see which word needs to be loaded first.