diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d11c081bc7d49cc078b486c617d0642b61983b33..9821d516cb911a57bc4aaeb081a208e93b7d5916 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-10-31  Graham Stott <graham.stott@btinternet.com>
+
+	* config/pa/pa.md: (prefetch_64, prefetch_32): Fix typo.  Use
+	INT_5_BITS instead of VAL_5_BITS_P.
+
 2004-10-31  Roger Sayle  <roger@eyesopen.com>
 
 	PR middle-end/14521
diff --git a/gcc/config/pa/pa.md b/gcc/config/pa/pa.md
index 074b22ca151374efbf18f89587f8ed2fbfaa573c..aa6d1ac864bfb200ca0a3dc810dea34a8515b3e2 100644
--- a/gcc/config/pa/pa.md
+++ b/gcc/config/pa/pa.md
@@ -9319,7 +9319,7 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
    && (operands[2] != const0_rtx
        || GET_CODE (XEXP (operands[0], 0)) != PLUS
        || GET_CODE (XEXP (XEXP (operands[0], 0), 1)) != CONST_INT
-       || VAL_5_BITS_P (XEXP (XEXP (operands[0], 0), 1)))"
+       || INT_5_BITS (XEXP (XEXP (operands[0], 0), 1)))"
 {
   /* The SL completor indicates good spatial locality but poor temporal
      locality.  The ldw instruction with a target of general register 0
@@ -9371,7 +9371,7 @@ add,l %2,%3,%3\;bv,n %%r0(%3)"
    && (operands[2] != const0_rtx
        || GET_CODE (XEXP (operands[0], 0)) != PLUS
        || GET_CODE (XEXP (XEXP (operands[0], 0), 1)) != CONST_INT
-       || VAL_5_BITS_P (XEXP (XEXP (operands[0], 0), 1)))"
+       || INT_5_BITS (XEXP (XEXP (operands[0], 0), 1)))"
 {
   /* The SL completor indicates good spatial locality but poor temporal
      locality.  The ldw instruction with a target of general register 0