From 2af3d377ff988686e3afdc61532a47a5afa2cc13 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Mon, 19 Jul 1993 18:09:05 -0400 Subject: [PATCH] (current_file_function_operand): New function. From-SVN: r4941 --- gcc/config/rs6000/rs6000.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 3a826932d78..4eb685d3fb1 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 -- 2.30.2