Commit d4de0221 by Kazu Hirata Committed by Kazu Hirata

lib1funcs.asm: Fix comment formatting.

	* config/v850/lib1funcs.asm: Fix comment formatting.
	* config/v850/v850.c: Likewise.
	* config/v850/v850.h: Likewise.
	* config/v850/v850.md: Likewise.

From-SVN: r75270
parent 99f296a0
2003-12-31 Kazu Hirata <kazu@cs.umass.edu> 2003-12-31 Kazu Hirata <kazu@cs.umass.edu>
* config/v850/lib1funcs.asm: Fix comment formatting.
* config/v850/v850.c: Likewise.
* config/v850/v850.h: Likewise.
* config/v850/v850.md: Likewise.
2003-12-31 Kazu Hirata <kazu@cs.umass.edu>
* config/i386/i386.md (*movqi_insv_2): Remove AND in the * config/i386/i386.md (*movqi_insv_2): Remove AND in the
set source. set source.
......
...@@ -1170,8 +1170,8 @@ __return_r29_r31: ...@@ -1170,8 +1170,8 @@ __return_r29_r31:
.align 2 .align 2
.globl __save_r31 .globl __save_r31
.type __save_r31,@function .type __save_r31,@function
/* Allocate space and save register 31 on the stack */ /* Allocate space and save register 31 on the stack. */
/* Also allocate space for the argument save area */ /* Also allocate space for the argument save area. */
/* Called via: jalr __save_r31,r10 */ /* Called via: jalr __save_r31,r10 */
__save_r31: __save_r31:
addi -20,sp,sp addi -20,sp,sp
...@@ -1179,7 +1179,7 @@ __save_r31: ...@@ -1179,7 +1179,7 @@ __save_r31:
jmp [r10] jmp [r10]
.size __save_r31,.-__save_r31 .size __save_r31,.-__save_r31
/* Restore saved registers, deallocate stack and return to the user */ /* Restore saved registers, deallocate stack and return to the user. */
/* Called via: jr __return_r31 */ /* Called via: jr __return_r31 */
.align 2 .align 2
.globl __return_r31 .globl __return_r31
...@@ -1196,7 +1196,7 @@ __return_r31: ...@@ -1196,7 +1196,7 @@ __return_r31:
.align 2 .align 2
.globl __save_r6_r9 .globl __save_r6_r9
.type __save_r6_r9,@function .type __save_r6_r9,@function
/* Save registers 6 .. 9 on the stack for variable argument functions */ /* Save registers 6 .. 9 on the stack for variable argument functions. */
/* Called via: jalr __save_r6_r9,r10 */ /* Called via: jalr __save_r6_r9,r10 */
__save_r6_r9: __save_r6_r9:
mov ep,r1 mov ep,r1
...@@ -1215,8 +1215,8 @@ __save_r6_r9: ...@@ -1215,8 +1215,8 @@ __save_r6_r9:
.align 2 .align 2
.globl __save_interrupt .globl __save_interrupt
.type __save_interrupt,@function .type __save_interrupt,@function
/* Save registers r1, r4 on stack and load up with expected values */ /* Save registers r1, r4 on stack and load up with expected values. */
/* Note, 12 bytes of stack have already been allocated. */ /* Note, 12 bytes of stack have already been allocated. */
/* Called via: jalr __save_interrupt,r10 */ /* Called via: jalr __save_interrupt,r10 */
__save_interrupt: __save_interrupt:
st.w ep,0[sp] st.w ep,0[sp]
...@@ -1229,7 +1229,7 @@ __save_interrupt: ...@@ -1229,7 +1229,7 @@ __save_interrupt:
jmp [r10] jmp [r10]
.size __save_interrupt,.-__save_interrupt .size __save_interrupt,.-__save_interrupt
/* Restore saved registers, deallocate stack and return from the interrupt */ /* Restore saved registers, deallocate stack and return from the interrupt. */
/* Called via: jr __return_interrupt */ /* Called via: jr __return_interrupt */
.align 2 .align 2
.globl __return_interrupt .globl __return_interrupt
...@@ -1249,8 +1249,8 @@ __return_interrupt: ...@@ -1249,8 +1249,8 @@ __return_interrupt:
.align 2 .align 2
.globl __save_all_interrupt .globl __save_all_interrupt
.type __save_all_interrupt,@function .type __save_all_interrupt,@function
/* Save all registers except for those saved in __save_interrupt */ /* Save all registers except for those saved in __save_interrupt. */
/* allocate enough stack for all of the registers & 16 bytes of space */ /* Allocate enough stack for all of the registers & 16 bytes of space. */
/* Called via: jalr __save_all_interrupt,r10 */ /* Called via: jalr __save_all_interrupt,r10 */
__save_all_interrupt: __save_all_interrupt:
addi -120,sp,sp addi -120,sp,sp
...@@ -1288,8 +1288,8 @@ __save_all_interrupt: ...@@ -1288,8 +1288,8 @@ __save_all_interrupt:
.globl __restore_all_interrupt .globl __restore_all_interrupt
.type __restore_all_interrupt,@function .type __restore_all_interrupt,@function
/* Restore all registers saved in __save_all_interrupt */ /* Restore all registers saved in __save_all_interrupt and
/* & deallocate the stack space */ deallocate the stack space. */
/* Called via: jalr __restore_all_interrupt,r10 */ /* Called via: jalr __restore_all_interrupt,r10 */
__restore_all_interrupt: __restore_all_interrupt:
mov ep,r1 mov ep,r1
...@@ -1455,7 +1455,7 @@ __callt_save_interrupt: .short ctoff(.L_save_interrupt) ...@@ -1455,7 +1455,7 @@ __callt_save_interrupt: .short ctoff(.L_save_interrupt)
.call_table_text .call_table_text
/* Restore saved registers, deallocate stack and return from the interrupt. */ /* Restore saved registers, deallocate stack and return from the interrupt. */
/* Called via: callt ctoff(__callt_restore_itnerrupt). */ /* Called via: callt ctoff(__callt_restore_itnerrupt). */
.text .text
.align 2 .align 2
.globl __return_interrupt .globl __return_interrupt
...@@ -1513,8 +1513,8 @@ __callt_return_interrupt: .short ctoff(.L_return_interrupt) ...@@ -1513,8 +1513,8 @@ __callt_return_interrupt: .short ctoff(.L_return_interrupt)
prepare {r20 - r29, r31}, 4 prepare {r20 - r29, r31}, 4
ctret ctret
/* Restore all registers saved in __save_all_interrupt. */ /* Restore all registers saved in __save_all_interrupt
/* & deallocate the stack space. */ deallocate the stack space. */
/* Called via: callt ctoff(__callt_restore_all_interrupt). */ /* Called via: callt ctoff(__callt_restore_all_interrupt). */
.align 2 .align 2
.L_restore_all_interrupt: .L_restore_all_interrupt:
...@@ -1570,7 +1570,7 @@ __callt_restore_all_interrupt: .short ctoff(.L_restore_all_interrupt) ...@@ -1570,7 +1570,7 @@ __callt_restore_all_interrupt: .short ctoff(.L_restore_all_interrupt)
.L_return_##START##_r29: ;\ .L_return_##START##_r29: ;\
dispose 0, { START - r29 }, r31 ;\ dispose 0, { START - r29 }, r31 ;\
;\ ;\
/* Place the offsets of the start of these funcs into the call table. */;\ /* Place the offsets of the start of these funcs into the call table. */;\
.call_table_data ;\ .call_table_data ;\
;\ ;\
.global __callt_save_##START##_r29 ;\ .global __callt_save_##START##_r29 ;\
...@@ -1597,7 +1597,7 @@ __callt_return_##START##_r29: .short ctoff(.L_return_##START##_r29 ) ...@@ -1597,7 +1597,7 @@ __callt_return_##START##_r29: .short ctoff(.L_return_##START##_r29 )
.L_return_##START##_r31c: ;\ .L_return_##START##_r31c: ;\
dispose 4, { START - r29, r31}, r31 ;\ dispose 4, { START - r29, r31}, r31 ;\
;\ ;\
/* Place the offsets of the start of these funcs into the call table. */;\ /* Place the offsets of the start of these funcs into the call table. */;\
.call_table_data ;\ .call_table_data ;\
;\ ;\
.global __callt_save_##START##_r31c ;\ .global __callt_save_##START##_r31c ;\
......
...@@ -1765,7 +1765,7 @@ Saved %d bytes via prologue function (%d vs. %d) for function %s\n", ...@@ -1765,7 +1765,7 @@ Saved %d bytes via prologue function (%d vs. %d) for function %s\n",
} }
/* If no prolog save function is available, store the registers the old /* If no prolog save function is available, store the registers the old
fashioned way (one by one). */ fashioned way (one by one). */
if (!save_all) if (!save_all)
{ {
/* Special case interrupt functions that save all registers for a call. */ /* Special case interrupt functions that save all registers for a call. */
...@@ -1786,7 +1786,7 @@ Saved %d bytes via prologue function (%d vs. %d) for function %s\n", ...@@ -1786,7 +1786,7 @@ Saved %d bytes via prologue function (%d vs. %d) for function %s\n",
else else
init_stack_alloc = actual_fsize; init_stack_alloc = actual_fsize;
/* Save registers at the beginning of the stack frame */ /* Save registers at the beginning of the stack frame. */
offset = init_stack_alloc - 4; offset = init_stack_alloc - 4;
if (init_stack_alloc) if (init_stack_alloc)
...@@ -2431,7 +2431,7 @@ construct_restore_jr (rtx op) ...@@ -2431,7 +2431,7 @@ construct_restore_jr (rtx op)
stack_bytes = INTVAL (XEXP (SET_SRC (XVECEXP (op, 0, 1)), 1)); stack_bytes = INTVAL (XEXP (SET_SRC (XVECEXP (op, 0, 1)), 1));
/* Each pop will remove 4 bytes from the stack... */ /* Each pop will remove 4 bytes from the stack.... */
stack_bytes -= (count - 2) * 4; stack_bytes -= (count - 2) * 4;
/* Make sure that the amount we are popping either 0 or 16 bytes. */ /* Make sure that the amount we are popping either 0 or 16 bytes. */
...@@ -2634,7 +2634,7 @@ construct_save_jarl (rtx op) ...@@ -2634,7 +2634,7 @@ construct_save_jarl (rtx op)
registers. */ registers. */
stack_bytes = INTVAL (XEXP (SET_SRC (XVECEXP (op, 0, 0)), 1)); stack_bytes = INTVAL (XEXP (SET_SRC (XVECEXP (op, 0, 0)), 1));
/* Each push will put 4 bytes from the stack... */ /* Each push will put 4 bytes from the stack.... */
stack_bytes += (count - (TARGET_LONG_CALLS ? 3 : 2)) * 4; stack_bytes += (count - (TARGET_LONG_CALLS ? 3 : 2)) * 4;
/* Make sure that the amount we are popping either 0 or 16 bytes. */ /* Make sure that the amount we are popping either 0 or 16 bytes. */
...@@ -2721,7 +2721,7 @@ extern tree last_assemble_variable_decl; ...@@ -2721,7 +2721,7 @@ extern tree last_assemble_variable_decl;
extern int size_directive_output; extern int size_directive_output;
/* A version of asm_output_aligned_bss() that copes with the special /* A version of asm_output_aligned_bss() that copes with the special
data areas of the v850. */ data areas of the v850. */
void void
v850_output_aligned_bss (FILE * file, v850_output_aligned_bss (FILE * file,
tree decl, tree decl,
...@@ -2858,7 +2858,7 @@ v850_insert_attributes (tree decl, tree * attr_ptr ATTRIBUTE_UNUSED ) ...@@ -2858,7 +2858,7 @@ v850_insert_attributes (tree decl, tree * attr_ptr ATTRIBUTE_UNUSED )
kind = GHS_SECTION_KIND_TEXT; kind = GHS_SECTION_KIND_TEXT;
else else
{ {
/* First choose a section kind based on the data area of the decl. */ /* First choose a section kind based on the data area of the decl. */
switch (v850_get_data_area (decl)) switch (v850_get_data_area (decl))
{ {
default: default:
...@@ -2891,11 +2891,11 @@ v850_insert_attributes (tree decl, tree * attr_ptr ATTRIBUTE_UNUSED ) ...@@ -2891,11 +2891,11 @@ v850_insert_attributes (tree decl, tree * attr_ptr ATTRIBUTE_UNUSED )
} }
/* Now, if the section kind has been explicitly renamed, /* Now, if the section kind has been explicitly renamed,
then attach a section attribute. */ then attach a section attribute. */
chosen_section = GHS_current_section_names [(int) kind]; chosen_section = GHS_current_section_names [(int) kind];
/* Otherwise, if this kind of section needs an explicit section /* Otherwise, if this kind of section needs an explicit section
attribute, then also attach one. */ attribute, then also attach one. */
if (chosen_section == NULL) if (chosen_section == NULL)
chosen_section = GHS_default_section_names [(int) kind]; chosen_section = GHS_default_section_names [(int) kind];
...@@ -3001,7 +3001,7 @@ construct_dispose_instruction (rtx op) ...@@ -3001,7 +3001,7 @@ construct_dispose_instruction (rtx op)
stack_bytes = INTVAL (XEXP (SET_SRC (XVECEXP (op, 0, 1)), 1)); stack_bytes = INTVAL (XEXP (SET_SRC (XVECEXP (op, 0, 1)), 1));
/* Each pop will remove 4 bytes from the stack... */ /* Each pop will remove 4 bytes from the stack.... */
stack_bytes -= (count - 2) * 4; stack_bytes -= (count - 2) * 4;
/* Make sure that the amount we are popping /* Make sure that the amount we are popping
......
...@@ -275,7 +275,7 @@ extern struct small_memory_info small_memory[(int)SMALL_MEMORY_max]; ...@@ -275,7 +275,7 @@ extern struct small_memory_info small_memory[(int)SMALL_MEMORY_max];
enable machine-specific optimizations. enable machine-specific optimizations.
*Do not examine `write_symbols' in this macro!* The debugging *Do not examine `write_symbols' in this macro!* The debugging
options are not supposed to alter the generated code. */ options are not supposed to alter the generated code. */
#define OPTIMIZATION_OPTIONS(LEVEL,SIZE) \ #define OPTIMIZATION_OPTIONS(LEVEL,SIZE) \
{ \ { \
...@@ -343,7 +343,7 @@ extern struct small_memory_info small_memory[(int)SMALL_MEMORY_max]; ...@@ -343,7 +343,7 @@ extern struct small_memory_info small_memory[(int)SMALL_MEMORY_max];
/* Define this as 1 if `char' should by default be signed; else as 0. /* Define this as 1 if `char' should by default be signed; else as 0.
On the NEC V850, loads do sign extension, so make this default. */ On the NEC V850, loads do sign extension, so make this default. */
#define DEFAULT_SIGNED_CHAR 1 #define DEFAULT_SIGNED_CHAR 1
/* Standard register usage. */ /* Standard register usage. */
...@@ -401,7 +401,7 @@ extern struct small_memory_info small_memory[(int)SMALL_MEMORY_max]; ...@@ -401,7 +401,7 @@ extern struct small_memory_info small_memory[(int)SMALL_MEMORY_max];
} }
/* If TARGET_NO_APP_REGS is not defined then add r2 and r5 to /* If TARGET_NO_APP_REGS is not defined then add r2 and r5 to
the pool of fixed registers. See PR 14505. */ the pool of fixed registers. See PR 14505. */
#define CONDITIONAL_REGISTER_USAGE \ #define CONDITIONAL_REGISTER_USAGE \
{ \ { \
if (TARGET_NO_APP_REGS) \ if (TARGET_NO_APP_REGS) \
...@@ -461,7 +461,7 @@ enum reg_class ...@@ -461,7 +461,7 @@ enum reg_class
#define N_REG_CLASSES (int) LIM_REG_CLASSES #define N_REG_CLASSES (int) LIM_REG_CLASSES
/* Give names of register classes as strings for dump file. */ /* Give names of register classes as strings for dump file. */
#define REG_CLASS_NAMES \ #define REG_CLASS_NAMES \
{ "NO_REGS", "GENERAL_REGS", "ALL_REGS", "LIM_REGS" } { "NO_REGS", "GENERAL_REGS", "ALL_REGS", "LIM_REGS" }
...@@ -634,7 +634,7 @@ enum reg_class ...@@ -634,7 +634,7 @@ enum reg_class
`HARD_FRAME_POINTER_REGNUM' or `STACK_POINTER_REGNUM'. `HARD_FRAME_POINTER_REGNUM' or `STACK_POINTER_REGNUM'.
Do not define this macro if it would be the same as Do not define this macro if it would be the same as
`FRAME_POINTER_REGNUM'. */ `FRAME_POINTER_REGNUM'. */
#undef HARD_FRAME_POINTER_REGNUM #undef HARD_FRAME_POINTER_REGNUM
#define HARD_FRAME_POINTER_REGNUM 29 #define HARD_FRAME_POINTER_REGNUM 29
...@@ -674,7 +674,7 @@ enum reg_class ...@@ -674,7 +674,7 @@ enum reg_class
{FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM}} {FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM}}
Note that the elimination of the argument pointer with the stack Note that the elimination of the argument pointer with the stack
pointer is specified first since that is the preferred elimination. */ pointer is specified first since that is the preferred elimination. */
#define ELIMINABLE_REGS \ #define ELIMINABLE_REGS \
{{ FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM }, \ {{ FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM }, \
...@@ -687,7 +687,7 @@ enum reg_class ...@@ -687,7 +687,7 @@ enum reg_class
TO-REG. This macro need only be defined if `ELIMINABLE_REGS' is TO-REG. This macro need only be defined if `ELIMINABLE_REGS' is
defined, and will usually be the constant 1, since most of the defined, and will usually be the constant 1, since most of the
cases preventing register elimination are things that the compiler cases preventing register elimination are things that the compiler
already knows about. */ already knows about. */
#define CAN_ELIMINATE(FROM, TO) \ #define CAN_ELIMINATE(FROM, TO) \
((TO) == STACK_POINTER_REGNUM ? ! frame_pointer_needed : 1) ((TO) == STACK_POINTER_REGNUM ? ! frame_pointer_needed : 1)
...@@ -695,7 +695,7 @@ enum reg_class ...@@ -695,7 +695,7 @@ enum reg_class
/* This macro is similar to `INITIAL_FRAME_POINTER_OFFSET'. It /* This macro is similar to `INITIAL_FRAME_POINTER_OFFSET'. It
specifies the initial difference between the specified pair of specifies the initial difference between the specified pair of
registers. This macro must be defined if `ELIMINABLE_REGS' is registers. This macro must be defined if `ELIMINABLE_REGS' is
defined. */ defined. */
#define INITIAL_ELIMINATION_OFFSET(FROM, TO, OFFSET) \ #define INITIAL_ELIMINATION_OFFSET(FROM, TO, OFFSET) \
{ \ { \
...@@ -797,7 +797,7 @@ struct cum_arg { int nbytes; int anonymous_args; }; ...@@ -797,7 +797,7 @@ struct cum_arg { int nbytes; int anonymous_args; };
/* Define how to find the value returned by a function. /* Define how to find the value returned by a function.
VALTYPE is the data type of the value (as a tree). VALTYPE is the data type of the value (as a tree).
If the precise function being called is known, FUNC is its FUNCTION_DECL; If the precise function being called is known, FUNC is its FUNCTION_DECL;
otherwise, FUNC is 0. */ otherwise, FUNC is 0. */
#define FUNCTION_VALUE(VALTYPE, FUNC) \ #define FUNCTION_VALUE(VALTYPE, FUNC) \
gen_rtx_REG (TYPE_MODE (VALTYPE), 10) gen_rtx_REG (TYPE_MODE (VALTYPE), 10)
...@@ -1003,7 +1003,7 @@ do { \ ...@@ -1003,7 +1003,7 @@ do { \
GO_IF_LEGITIMATE_ADDRESS. GO_IF_LEGITIMATE_ADDRESS.
It is always safe for this macro to do nothing. It exists to recognize It is always safe for this macro to do nothing. It exists to recognize
opportunities to optimize the output. */ opportunities to optimize the output. */
#define LEGITIMIZE_ADDRESS(X,OLDX,MODE,WIN) {} #define LEGITIMIZE_ADDRESS(X,OLDX,MODE,WIN) {}
...@@ -1068,10 +1068,10 @@ typedef enum ...@@ -1068,10 +1068,10 @@ typedef enum
/* One or more functions to be defined in `varasm.c'. These /* One or more functions to be defined in `varasm.c'. These
functions should do jobs analogous to those of `text_section' and functions should do jobs analogous to those of `text_section' and
`data_section', for your additional sections. Do not define this `data_section', for your additional sections. Do not define this
macro if you do not define `EXTRA_SECTIONS'. */ macro if you do not define `EXTRA_SECTIONS'. */
#undef EXTRA_SECTION_FUNCTIONS #undef EXTRA_SECTION_FUNCTIONS
/* This could be done a lot more cleanly using ANSI C ... */ /* This could be done a lot more cleanly using ANSI C.... */
#define EXTRA_SECTION_FUNCTIONS \ #define EXTRA_SECTION_FUNCTIONS \
void \ void \
sdata_section () \ sdata_section () \
...@@ -1188,14 +1188,14 @@ zbss_section () \ ...@@ -1188,14 +1188,14 @@ zbss_section () \
v850_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN) v850_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
/* This says how to output the assembler to define a global /* This says how to output the assembler to define a global
uninitialized, common symbol. */ uninitialized, common symbol. */
#undef ASM_OUTPUT_ALIGNED_COMMON #undef ASM_OUTPUT_ALIGNED_COMMON
#undef ASM_OUTPUT_COMMON #undef ASM_OUTPUT_COMMON
#define ASM_OUTPUT_ALIGNED_DECL_COMMON(FILE, DECL, NAME, SIZE, ALIGN) \ #define ASM_OUTPUT_ALIGNED_DECL_COMMON(FILE, DECL, NAME, SIZE, ALIGN) \
v850_output_common (FILE, DECL, NAME, SIZE, ALIGN) v850_output_common (FILE, DECL, NAME, SIZE, ALIGN)
/* This says how to output the assembler to define a local /* This says how to output the assembler to define a local
uninitialized symbol. */ uninitialized symbol. */
#undef ASM_OUTPUT_ALIGNED_LOCAL #undef ASM_OUTPUT_ALIGNED_LOCAL
#undef ASM_OUTPUT_LOCAL #undef ASM_OUTPUT_LOCAL
#define ASM_OUTPUT_ALIGNED_DECL_LOCAL(FILE, DECL, NAME, SIZE, ALIGN) \ #define ASM_OUTPUT_ALIGNED_DECL_LOCAL(FILE, DECL, NAME, SIZE, ALIGN) \
...@@ -1289,11 +1289,11 @@ zbss_section () \ ...@@ -1289,11 +1289,11 @@ zbss_section () \
/* Define as C expression which evaluates to nonzero if the tablejump /* Define as C expression which evaluates to nonzero if the tablejump
instruction expects the table to contain offsets from the address of the instruction expects the table to contain offsets from the address of the
table. table.
Do not define this if the table should contain absolute addresses. */ Do not define this if the table should contain absolute addresses. */
#define CASE_VECTOR_PC_RELATIVE 1 #define CASE_VECTOR_PC_RELATIVE 1
/* The switch instruction requires that the jump table immediately follow /* The switch instruction requires that the jump table immediately follow
it. */ it. */
#define JUMP_TABLES_IN_TEXT_SECTION 1 #define JUMP_TABLES_IN_TEXT_SECTION 1
/* svr4.h defines this assuming that 4 byte alignment is required. */ /* svr4.h defines this assuming that 4 byte alignment is required. */
......
...@@ -1429,7 +1429,7 @@ ...@@ -1429,7 +1429,7 @@
if (GET_CODE (operands[1]) == REG) if (GET_CODE (operands[1]) == REG)
return \"jarl %1, r31\"; return \"jarl %1, r31\";
else else
/* Reload can generate this pattern... */ /* Reload can generate this pattern.... */
return \"movhi hi(%1), r0, r11 ; movea lo(%1), r11, r11 ; jarl .+4, r31 ; add 4, r31 ; jmp r11\"; return \"movhi hi(%1), r0, r11 ; movea lo(%1), r11, r11 ; jarl .+4, r31 ; add 4, r31 ; jmp r11\";
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment