aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1999-08-26 19:15:22 +0000
committerJeff Law <law@gcc.gnu.org>1999-08-26 13:15:22 -0600
commitb85ed4fc35ad1841fea93eb7d09607eb0bf9bc6e (patch)
treec9fba4fd0b0a63bd87c336927a0bebde25ef1608 /gcc
parent12207a8790726fab1c993fefa1a17f38e6813d40 (diff)
downloadgcc-b85ed4fc35ad1841fea93eb7d09607eb0bf9bc6e.zip
gcc-b85ed4fc35ad1841fea93eb7d09607eb0bf9bc6e.tar.gz
gcc-b85ed4fc35ad1841fea93eb7d09607eb0bf9bc6e.tar.bz2
pa.md (cint_ok_for_move): Use CONST_INT_OK_FOR_LETTER_P macros instead of duplicating code.
* pa.md (cint_ok_for_move): Use CONST_INT_OK_FOR_LETTER_P macros instead of duplicating code. From-SVN: r28904
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/pa/pa.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3351ad0..2c6293d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c
index b49e6b6..7568f1f 100644
--- a/gcc/config/pa/pa.c
+++ b/gcc/config/pa/pa.c
@@ -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