aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2007-03-01 11:54:52 +0100
committerUros Bizjak <uros@gcc.gnu.org>2007-03-01 11:54:52 +0100
commit93de7743bac2adacede483aa17cb1a191e3c9b9a (patch)
treeb17ebdece7800fdd3aaab313f6038a1267db7f1e /gcc
parent7ffb5e78794b6d8f8094d7c928e6f0e94b62cad6 (diff)
downloadgcc-93de7743bac2adacede483aa17cb1a191e3c9b9a.zip
gcc-93de7743bac2adacede483aa17cb1a191e3c9b9a.tar.gz
gcc-93de7743bac2adacede483aa17cb1a191e3c9b9a.tar.bz2
i386.c (ix86_modes_tieable_p): Fix typo, use also size of mode1 to check for tieable modes in MMX case.
* config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also size of mode1 to check for tieable modes in MMX case. From-SVN: r122429
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/i386.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 120d963..1a6be7b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2007-03-01 Uros Bizjak <ubizjak@gmail.com>
+
+ * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
+ size of mode1 to check for tieable modes in MMX case.
+
2007-03-01 Richard Sandiford <richard@codesourcery.com>
* Makefile.in (rtlanal.o): Depend on tree.h.
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index c020830..935f3df 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -18792,7 +18792,7 @@ ix86_modes_tieable_p (enum machine_mode mode1, enum machine_mode mode2)
with any other mode acceptable to MMX registers. */
if (GET_MODE_SIZE (mode2) == 8
&& ix86_hard_regno_mode_ok (FIRST_MMX_REG, mode2))
- return (GET_MODE_SIZE (mode2) == 8
+ return (GET_MODE_SIZE (mode1) == 8
&& ix86_hard_regno_mode_ok (FIRST_MMX_REG, mode1));
return false;