pa.md (cint_ok_for_move): Use CONST_INT_OK_FOR_LETTER_P macros instead of duplicating...
authorJeffrey A Law <law@cygnus.com>
Thu, 26 Aug 1999 19:15:22 +0000 (19:15 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 26 Aug 1999 19:15:22 +0000 (13:15 -0600)
        * pa.md (cint_ok_for_move): Use CONST_INT_OK_FOR_LETTER_P macros
        instead of duplicating code.

From-SVN: r28904

gcc/ChangeLog
gcc/config/pa/pa.c

index 3351ad0c76a4822cd5c50db58eb1cc9e1c920caa..2c6293d63562e0e9ebd8ff119d90687940abe6b8 100644 (file)
@@ -1,3 +1,8 @@
+Thu Aug 26 13:12:29 1999  Jeffrey A Law  (law@cygnus.com)
+
+       * pa.md (cint_ok_for_move): Use CONST_INT_OK_FOR_LETTER_P macros
+       instead of duplicating code.
+
 Thu Aug 26 18:32:32 1999  Bernd Schmidt  <bernds@cygnus.co.uk>
 
        * gcse.c (hash_scan_insn): Don't scan obvious no-ops.
index b49e6b67ba76c1ac6e8b7e49f937caaf67be7779..7568f1fbaa4c5edc11f15e556ada733e3a0251db 100644 (file)
@@ -299,8 +299,9 @@ cint_ok_for_move (intval)
      HOST_WIDE_INT intval;
 {
   /* OK if ldo, ldil, or zdepi, can be used.  */
-  return (VAL_14_BITS_P (intval) || (intval & 0x7ff) == 0
-         || zdepi_cint_p (intval));
+  return (CONST_OK_FOR_LETTER_P (intval, 'J')
+         || CONST_OK_FOR_LETTER_P (intval, 'N')
+         || CONST_OK_FOR_LETTER_P (intval, 'K'));
 }
 
 /* Accept anything that can be moved in one instruction into a general