]> gcc.gnu.org Git - gcc.git/commitdiff
(current_file_function_operand): New function.
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 19 Jul 1993 22:09:05 +0000 (18:09 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 19 Jul 1993 22:09:05 +0000 (18:09 -0400)
From-SVN: r4941

gcc/config/rs6000/rs6000.c

index 3a826932d785d5975299902616dfa992c331874f..4eb685d3fb1cb3f3572d0e6500441b9088b517aa 100644 (file)
@@ -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
This page took 0.89909 seconds and 5 git commands to generate.