summaryrefslogtreecommitdiff
path: root/gcc/config/sh/sh.md
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-09 14:23:50 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-09 14:23:50 +0000
commit3c7c3d6e1cbd21304e187d45dc9e96c758af8a90 (patch)
treed78edc13c1dca740f1a1c1fce49c4d03610a9627 /gcc/config/sh/sh.md
parent864312c081682a66f71588b9668aa3d5fabec1b2 (diff)
downloadgcc-3c7c3d6e1cbd21304e187d45dc9e96c758af8a90.tar.gz
* sh.md (reload_outsf): Generate recognizable patterns for
TARGET_SH3E. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38832 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/sh/sh.md')
-rw-r--r--gcc/config/sh/sh.md10
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md
index 1acbdf34585..dbd9759c36f 100644
--- a/gcc/config/sh/sh.md
+++ b/gcc/config/sh/sh.md
@@ -2961,7 +2961,15 @@
(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.