aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1993-01-14 11:20:09 -0800
committerJim Wilson <wilson@gcc.gnu.org>1993-01-14 11:20:09 -0800
commit228b4037f0d7b13bccfc2e4620bed6ac51f6cca9 (patch)
treeb60cf9f01a24f2eecea1ec958f7c6d95f2d52913 /gcc
parentb4c65118c407e7776c66fd4cb49a4517bf9ce46a (diff)
downloadgcc-228b4037f0d7b13bccfc2e4620bed6ac51f6cca9.zip
gcc-228b4037f0d7b13bccfc2e4620bed6ac51f6cca9.tar.gz
gcc-228b4037f0d7b13bccfc2e4620bed6ac51f6cca9.tar.bz2
Clarify numerous *_operand comments.
(SPARC_STACK_ALIGN): Delete. (sparc_frw_output_function_epilogue): Delete unused variable load_only_r15. (sparc_frw_epilogue_delay_slots): Delete r15/fmask test. From-SVN: r3234
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/sparc/sparc.c26
1 files changed, 9 insertions, 17 deletions
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
index b24ed2d..8e1b9a9 100644
--- a/gcc/config/sparc/sparc.c
+++ b/gcc/config/sparc/sparc.c
@@ -154,7 +154,7 @@ symbolic_operand (op, mode)
|| GET_CODE (XEXP (op, 0)) == LABEL_REF)
&& GET_CODE (XEXP (op, 1)) == CONST_INT);
- /* This clause seems to be irrelevant. */
+ /* ??? This clause seems to be irrelevant. */
case CONST_DOUBLE:
return GET_MODE (op) == mode;
@@ -396,8 +396,9 @@ cc_arithopn (op, mode)
|| GET_CODE (op) == IOR);
}
-/* Return truth value of whether OP can be used as an operands in a three
- address arithmetic insn (such as add %o1,7,%l2) of mode MODE. */
+/* Return true if OP is a register, or is a CONST_INT that can fit in a 13
+ bit immediate field. This is an acceptable SImode operand for most 3
+ address instructions. */
int
arith_operand (op, mode)
@@ -408,7 +409,9 @@ arith_operand (op, mode)
|| (GET_CODE (op) == CONST_INT && SMALL_INT (op)));
}
-/* Return truth value of whether OP is a register or a CONST_DOUBLE. */
+/* Return true if OP is a register, or is a CONST_INT or CONST_DOUBLE that
+ can fit in a 13 bit immediate field. This is an acceptable DImode operand
+ for most 3 address instructions. */
int
arith_double_operand (op, mode)
@@ -429,7 +432,8 @@ arith_double_operand (op, mode)
}
/* Return truth value of whether OP is a integer which fits the
- range constraining immediate operands in three-address insns. */
+ range constraining immediate operands in most three-address insns,
+ which have a 13 bit immediate field. */
int
small_int (op, mode)
@@ -3127,11 +3131,6 @@ struct sparc_frame_info zero_frame_info;
|| (regno == FRAME_POINTER_REGNUM && frame_pointer_needed) \
|| (regno == 15 && regs_ever_live[15]))
-#ifndef SPARC_STACK_ALIGN
-#define STACK_BYTES (STACK_BOUNDARY / 8)
-#define SPARC_STACK_ALIGN(X) (((X) + STACK_BYTES - 1) & -STACK_BYTES)
-#endif
-
/* Return the bytes needed to compute the frame pointer from the current
stack pointer. */
@@ -3404,7 +3403,6 @@ sparc_frw_output_function_epilogue (file, size, ignored1, ignored2)
char *t1_str = "%g1";
rtx epilogue_delay = current_function_epilogue_delay_list;
int noepilogue = FALSE;
- int load_only_r15;
/* The epilogue does not depend on any registers, but the stack
registers, so we assume that if we have 1 pending nop, it can be
@@ -3450,9 +3448,6 @@ sparc_frw_output_function_epilogue (file, size, ignored1, ignored2)
sparc_frw_save_restore (file, "ld", "ldd");
- load_only_r15 = (current_frame_info.mask == (1 << 15)
- && current_frame_info.fmask == 0);
-
if (current_function_returns_struct)
fprintf (file, "\tjmp %%o7+12\n");
else
@@ -3498,9 +3493,6 @@ sparc_frw_epilogue_delay_slots ()
if (current_frame_info.total_size == 0)
return 1;
- if (current_frame_info.mask == (1 << 15) && current_frame_info.fmask == 0)
- return 1;
-
return 0;
}