c4x.c (src_operand): Check SYMBOL_REF and LABEL_REF memory mode.
authorMichael Hayes <m.hayes@elec.canterbury.ac.nz>
Fri, 15 Oct 1999 23:29:00 +0000 (23:29 +0000)
committerMichael Hayes <m.hayes@gcc.gnu.org>
Fri, 15 Oct 1999 23:29:00 +0000 (23:29 +0000)
* config/c4x/c4x.c (src_operand):  Check SYMBOL_REF and LABEL_REF
memory mode.

From-SVN: r30026

gcc/ChangeLog
gcc/config/c4x/c4x.c

index 54dac4ecf2a042583dbd97cb58dc3387e6dfa2c1..1783d3bd75977e3804c4d598b3655eff4b24de02 100644 (file)
@@ -1,3 +1,8 @@
+Sat Oct 16 12:26:30 1999  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
+
+       * config/c4x/c4x.c (src_operand):  Check SYMBOL_REF and LABEL_REF
+       memory mode.
+
 Fri Oct 15 17:02:09 1999  Jeffrey A Law  (law@cygnus.com)
 
        * pa.c (move_operand): Rely on memory_address_p to determine the
index 837d03ddf25da4c4484f608f6292d59ac0a9c855..34b57f0638c6233d3a39a48abe081fff2d9002e8 100644 (file)
@@ -3119,7 +3119,7 @@ src_operand (op, mode)
       && ((GET_CODE (XEXP (op, 0)) == SYMBOL_REF
           || GET_CODE (XEXP (op, 0)) == LABEL_REF
           || GET_CODE (XEXP (op, 0)) == CONST)))
-    return ! TARGET_EXPOSE_LDP;
+    return ! TARGET_EXPOSE_LDP && GET_MODE (op) == mode;
 
   return general_operand (op, mode);
 }