projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16d82c3
)
(movqi): Use moveq if possible.
author
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 31 Jan 1996 13:25:57 +0000
(08:25 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 31 Jan 1996 13:25:57 +0000
(08:25 -0500)
From-SVN: r11138
gcc/config/m68k/m68k.md
patch
|
blob
|
history
diff --git
a/gcc/config/m68k/m68k.md
b/gcc/config/m68k/m68k.md
index d65d84dd2bff1bcc9e10d741521d902f69fd9291..84c197cbff47cb73b185482f7c0949231e6c49e9 100644
(file)
--- a/
gcc/config/m68k/m68k.md
+++ b/
gcc/config/m68k/m68k.md
@@
-1071,6
+1071,17
@@
return \"st %0\";
}
}
+ if (GET_CODE (operands[1]) == CONST_INT
+ && DATA_REG_P (operands[0])
+ && INTVAL (operands[1]) < 128
+ && INTVAL (operands[1]) >= -128)
+ {
+#if defined(MOTOROLA) && !defined(CRDS)
+ return \"moveq%.l %1,%0\";
+#else
+ return \"moveq %1,%0\";
+#endif
+ }
if (GET_CODE (operands[1]) != CONST_INT && CONSTANT_P (operands[1]))
return \"move%.l %1,%0\";
if (ADDRESS_REG_P (operands[0]) || ADDRESS_REG_P (operands[1]))