(call_operand): If in REG, only reg 27 valid.
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 19 Feb 1996 12:17:19 +0000 (07:17 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 19 Feb 1996 12:17:19 +0000 (07:17 -0500)
From-SVN: r11301

gcc/config/alpha/alpha.c

index b5a42b77826fe5d89dc573cac454b62d311ad4cb..4a380a7dd0767e54a0bf0eb8ed542438e87c5fca 100644 (file)
@@ -1,5 +1,5 @@
 /* Subroutines used for code generation on the DEC Alpha.
-   Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
+   Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
    Contributed by Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
 
 This file is part of GNU CC.
@@ -370,7 +370,8 @@ call_operand (op, mode)
   if (mode != Pmode)
     return 0;
 
-  return (GET_CODE (op) == SYMBOL_REF || GET_CODE (op) == REG);
+  return (GET_CODE (op) == SYMBOL_REF
+         || (GET_CODE (op) == REG && REGNO (op) == 27));
 }
 
 /* Return 1 if OP is a valid Alpha comparison operator.  Here we know which