aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1993-07-19 18:09:05 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1993-07-19 18:09:05 -0400
commit2af3d377ff988686e3afdc61532a47a5afa2cc13 (patch)
tree536ba592c81352380d20a46baa109f3832402fa2 /gcc
parent733fa7ef0a546a980f6bcc02065ed8a467edec18 (diff)
downloadgcc-2af3d377ff988686e3afdc61532a47a5afa2cc13.zip
gcc-2af3d377ff988686e3afdc61532a47a5afa2cc13.tar.gz
gcc-2af3d377ff988686e3afdc61532a47a5afa2cc13.tar.bz2
(current_file_function_operand): New function.
From-SVN: r4941
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/rs6000/rs6000.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 3a82693..4eb685d 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -383,6 +383,21 @@ call_operand (op, mode)
|| (GET_CODE (op) == REG && REGNO (op) >= FIRST_PSEUDO_REGISTER));
}
+
+/* Return 1 if the operand is a SYMBOL_REF for a function known to be in
+ this file. */
+
+int
+current_file_function_operand (op, mode)
+ register rtx op;
+ enum machine_mode mode;
+{
+ return (GET_CODE (op) == SYMBOL_REF
+ && (SYMBOL_REF_FLAG (op)
+ || op == XEXP (DECL_RTL (current_function_decl), 0)));
+}
+
+
/* Return 1 if this operand is a valid input for a move insn. */
int