(pc_or_label_operand): New predicate.
authorTorbjorn Granlund <tege@gnu.org>
Wed, 17 Mar 1993 20:57:22 +0000 (20:57 +0000)
committerTorbjorn Granlund <tege@gnu.org>
Wed, 17 Mar 1993 20:57:22 +0000 (20:57 +0000)
From-SVN: r3765

gcc/config/pa/pa.c

index 3294f92e3c3ff917b54c1ffa66a205ab2c9c8d2a..fa93c66cf1feee77076d2c9592d39820412dcbf0 100644 (file)
@@ -442,6 +442,14 @@ arith32_operand (op, mode)
 {
   return register_operand (op, mode) || GET_CODE (op) == CONST_INT;
 }
+
+int
+pc_or_label_operand (op, mode)
+     rtx op;
+     enum machine_mode mode;
+{
+  return (GET_CODE (op) == PC || GET_CODE (op) == LABEL_REF);
+}
 \f
 /* Legitimize PIC addresses.  If the address is already
    position-independent, we return ORIG.  Newly generated