]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
m68k.h (CONST_OK_FOR_LETTER_P): Fix logic in range check for 'M' constraint.
authorAndreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Fri, 13 Mar 1998 02:33:38 +0000 (02:33 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Fri, 13 Mar 1998 02:33:38 +0000 (02:33 +0000)
* config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Fix logic in range
check for 'M' constraint.

From-SVN: r18523

gcc/ChangeLog
gcc/config/m68k/m68k.h

index 1d1bcb76837e833f2ef6e4c45e81f04b80961a1b..28dc551f1deb728b101b4df2951862eede5380c2 100644 (file)
@@ -1,3 +1,8 @@
+Fri Mar 13 11:30:12 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
+
+       * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Fix logic in range
+       check for 'M' constraint.
+
 Thu Mar 12 14:47:14 1998  Jim Wilson  <wilson@cygnus.com>
 
        * cccp.c (create_definition): If pedantic, call pedwarn for macro
index 600fab430c7a56eabbd2e736e04860b4f6d47c0e..5270f709a9cd2e5e9edfd2f77420080e928e6c23 100644 (file)
@@ -722,7 +722,7 @@ extern enum reg_class regno_reg_class[];
    (C) == 'J' ? (VALUE) >= -0x8000 && (VALUE) <= 0x7FFF : \
    (C) == 'K' ? (VALUE) < -0x80 || (VALUE) >= 0x80 : \
    (C) == 'L' ? (VALUE) < 0 && (VALUE) >= -8 : \
-   (C) == 'M' ? (VALUE) < -0x100 && (VALUE) >= 0x100 : \
+   (C) == 'M' ? (VALUE) < -0x100 || (VALUE) >= 0x100 : \
    (C) == 'N' ? (VALUE) >= 24 && (VALUE) <= 31 : \
    (C) == 'O' ? (VALUE) == 16 : \
    (C) == 'P' ? (VALUE) >= 8 && (VALUE) <= 15 : 0)