aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGunther Nikl <gni@gecko.de>2003-08-20 22:10:42 +0000
committerBernardo Innocenti <bernie@gcc.gnu.org>2003-08-21 00:10:42 +0200
commit0fb8241d3758aeb61a9fabce99fb888dbbe7afd8 (patch)
tree1de8c1ae0f7b8e8a2996ca83a1307f2975fc23e9 /gcc
parentc23b0b90ee16a4f80c69fe4513929c3f84e587c9 (diff)
downloadgcc-0fb8241d3758aeb61a9fabce99fb888dbbe7afd8.zip
gcc-0fb8241d3758aeb61a9fabce99fb888dbbe7afd8.tar.gz
gcc-0fb8241d3758aeb61a9fabce99fb888dbbe7afd8.tar.bz2
m68k.c (output_move_const_into_data_reg, [...]): unify MOTOROLA/MIT handling of moveq
* config/m68k/m68k.c (output_move_const_into_data_reg, output_move_himode): unify MOTOROLA/MIT handling of moveq * config/m68k/m68k.md (movsi_const0, anonymous define_insn): Likewise From-SVN: r70621
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/m68k/m68k.c28
-rw-r--r--gcc/config/m68k/m68k.md8
3 files changed, 7 insertions, 36 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 244163c..0438374 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,12 @@
2003-08-20 Gunther Nikl <gni@gecko.de>
+ * config/m68k/m68k.c (output_move_const_into_data_reg,
+ output_move_himode): unify MOTOROLA/MIT handling of moveq
+ * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
+ Likewise
+
+2003-08-20 Gunther Nikl <gni@gecko.de>
+
* config/m68k/m68k.c (m68k_output_function_prologue): use %U in
label name
* config/m68k/m68k.c (m68k_output_function_epilogue): replace
diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c
index cd8a2b7..79f3752 100644
--- a/gcc/config/m68k/m68k.c
+++ b/gcc/config/m68k/m68k.c
@@ -1604,41 +1604,21 @@ output_move_const_into_data_reg (operands)
switch (const_method (operands[1]))
{
case MOVQ :
-#if defined (MOTOROLA)
- return "moveq%.l %1,%0";
-#else
return "moveq %1,%0";
-#endif
case NOTB :
operands[1] = GEN_INT (i ^ 0xff);
-#if defined (MOTOROLA)
- return "moveq%.l %1,%0\n\tnot%.b %0";
-#else
return "moveq %1,%0\n\tnot%.b %0";
-#endif
case NOTW :
operands[1] = GEN_INT (i ^ 0xffff);
-#if defined (MOTOROLA)
- return "moveq%.l %1,%0\n\tnot%.w %0";
-#else
return "moveq %1,%0\n\tnot%.w %0";
-#endif
case NEGW :
-#if defined (MOTOROLA)
- return "moveq%.l %#-128,%0\n\tneg%.w %0";
-#else
return "moveq %#-128,%0\n\tneg%.w %0";
-#endif
case SWAP :
{
unsigned u = i;
operands[1] = GEN_INT ((u << 16) | (u >> 16));
-#if defined (MOTOROLA)
- return "moveq%.l %1,%0\n\tswap %0";
-#else
return "moveq %1,%0\n\tswap %0";
-#endif
}
case MOVL :
return "move%.l %1,%0";
@@ -1717,11 +1697,7 @@ output_move_himode (operands)
&& INTVAL (operands[1]) < 128
&& INTVAL (operands[1]) >= -128)
{
-#if defined(MOTOROLA)
- return "moveq%.l %1,%0";
-#else
return "moveq %1,%0";
-#endif
}
else if (INTVAL (operands[1]) < 0x8000
&& INTVAL (operands[1]) >= -0x8000)
@@ -1821,11 +1797,7 @@ output_move_qimode (operands)
&& INTVAL (operands[1]) < 128
&& INTVAL (operands[1]) >= -128)
{
-#if defined(MOTOROLA)
- return "moveq%.l %1,%0";
-#else
return "moveq %1,%0";
-#endif
}
if (operands[1] == const0_rtx && ADDRESS_REG_P (operands[0]))
return "sub%.l %0,%0";
diff --git a/gcc/config/m68k/m68k.md b/gcc/config/m68k/m68k.md
index ff56d39..bc22ec1 100644
--- a/gcc/config/m68k/m68k.md
+++ b/gcc/config/m68k/m68k.md
@@ -718,11 +718,7 @@
}
/* moveq is faster on the 68000. */
if (DATA_REG_P (operands[0]) && (!TARGET_68020 && !TARGET_5200))
-#if defined(MOTOROLA)
- return \"moveq%.l %#0,%0\";
-#else
return \"moveq %#0,%0\";
-#endif
return \"clr%.l %0\";
}")
@@ -932,11 +928,7 @@
/* moveq is faster on the 68000. */
if (DATA_REG_P (operands[0]) && !(TARGET_68020 || TARGET_5200))
{
-#if defined(MOTOROLA)
- return \"moveq%.l %#0,%0\";
-#else
return \"moveq %#0,%0\";
-#endif
}
return \"clr%.l %0\";
}