]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386.c (ix86_modes_tieable_p): Fix typo, use also size of mode1 to check for tieable...
authorUros Bizjak <ubizjak@gmail.com>
Thu, 1 Mar 2007 10:54:52 +0000 (11:54 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Thu, 1 Mar 2007 10:54:52 +0000 (11:54 +0100)
* 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

gcc/ChangeLog
gcc/config/i386/i386.c

index 120d963081d351376cadc1a4885461c53c5c3ae6..1a6be7b3794479210848749eac839538b11a38a1 100644 (file)
@@ -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.
index c0208301afd4f16515006ea7deb9b8e3365bed4a..935f3df7151d2fe8644c187cba4309b83ede54c7 100644 (file)
@@ -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;