aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorFranz Sirl <Franz.Sirl-kernel@lauterbach.com>1998-07-06 23:47:09 +0000
committerJeff Law <law@gcc.gnu.org>1998-07-06 17:47:09 -0600
commit7edf1e0416c6576886c7f2ae0736f3357d802da7 (patch)
tree0f2e49947032085437e0b9c617c9da2b5d50b63f /gcc
parent79325812b80ccd6d30dafc110cb404c16dc5e43e (diff)
downloadgcc-7edf1e0416c6576886c7f2ae0736f3357d802da7.zip
gcc-7edf1e0416c6576886c7f2ae0736f3357d802da7.tar.gz
gcc-7edf1e0416c6576886c7f2ae0736f3357d802da7.tar.bz2
* m68k.md (zero_extend QI to HI): Correctly handle TARGET_5200.
From-SVN: r20981
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/m68k/m68k.md5
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3a1d6f9..a3801de 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+Tue Jul 7 00:44:35 1998 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
+
+ * m68k.md (zero_extend QI to HI): Correctly handle TARGET_5200.
+
Tue Jul 7 00:36:41 1998 Ulrich Drepper <drepper@cygnus.com>
* i386.c: Remove random whitespace at end of lines.
diff --git a/gcc/config/m68k/m68k.md b/gcc/config/m68k/m68k.md
index f583dc5..07b13fe 100644
--- a/gcc/config/m68k/m68k.md
+++ b/gcc/config/m68k/m68k.md
@@ -1584,9 +1584,10 @@
{
if (GET_CODE (operands[1]) == REG
&& REGNO (operands[0]) == REGNO (operands[1]))
- return \"and%.w %#0xFF,%0\";
+ return (!TARGET_5200 ? \"and%.w %#0xFF,%0\" : \"and%.l %#0xFF,%0\");
if (reg_mentioned_p (operands[0], operands[1]))
- return \"move%.b %1,%0\;and%.w %#0xFF,%0\";
+ return (!TARGET_5200 ? \"move%.b %1,%0\;and%.w %#0xFF,%0\"
+ : \"move%.b %1,%0\;and%.l %#0xFF,%0\");
return \"clr%.w %0\;move%.b %1,%0\";
}
else if (GET_CODE (operands[0]) == MEM