Commit 9cbcd983 by Kazu Hirata Committed by Kazu Hirata

* config/h8300/h8300.c: Fix formatting.

From-SVN: r49449
parent 7a27efc4
2002-02-02 Kazu Hirata <kazu@hxi.com> 2002-02-02 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.c: Fix formatting.
2002-02-02 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.md: Fix formatting. * config/h8300/h8300.md: Fix formatting.
2002-02-02 Kazu Hirata <kazu@hxi.com> 2002-02-02 Kazu Hirata <kazu@hxi.com>
......
...@@ -148,30 +148,31 @@ byte_reg (x, b) ...@@ -148,30 +148,31 @@ byte_reg (x, b)
rtx x; rtx x;
int b; int b;
{ {
static const char *const names_small[] = static const char *const names_small[] = {
{"r0l", "r0h", "r1l", "r1h", "r2l", "r2h", "r3l", "r3h", "r0l", "r0h", "r1l", "r1h", "r2l", "r2h", "r3l", "r3h",
"r4l", "r4h", "r5l", "r5h", "r6l", "r6h", "r7l", "r7h"}; "r4l", "r4h", "r5l", "r5h", "r6l", "r6h", "r7l", "r7h"
};
return names_small[REGNO (x) * 2 + b]; return names_small[REGNO (x) * 2 + b];
} }
/* REGNO must be saved/restored across calls if this macro is true. */ /* REGNO must be saved/restored across calls if this macro is true. */
#define WORD_REG_USED(regno) \ #define WORD_REG_USED(regno) \
(regno < 7 \ (regno < 7 \
/* No need to save registers if this function will not return. */\ /* No need to save registers if this function will not return. */ \
&& ! TREE_THIS_VOLATILE (current_function_decl) \ && ! TREE_THIS_VOLATILE (current_function_decl) \
&& (pragma_saveall \ && (pragma_saveall \
/* Save any call saved register that was used. */ \ /* Save any call saved register that was used. */ \
|| (regs_ever_live[regno] && !call_used_regs[regno]) \ || (regs_ever_live[regno] && !call_used_regs[regno]) \
/* Save the frame pointer if it was used. */ \ /* Save the frame pointer if it was used. */ \
|| (regno == FRAME_POINTER_REGNUM && regs_ever_live[regno])\ || (regno == FRAME_POINTER_REGNUM && regs_ever_live[regno]) \
/* Save any register used in an interrupt handler. */ \ /* Save any register used in an interrupt handler. */ \
|| (interrupt_handler && regs_ever_live[regno]) \ || (interrupt_handler && regs_ever_live[regno]) \
/* Save call clobbered registers in non-leaf interrupt \ /* Save call clobbered registers in non-leaf interrupt \
handlers. */ \ handlers. */ \
|| (interrupt_handler \ || (interrupt_handler \
&& call_used_regs[regno] \ && call_used_regs[regno] \
&& !current_function_is_leaf))) && !current_function_is_leaf)))
/* Output assembly language to FILE for the operation OP with operand size /* Output assembly language to FILE for the operation OP with operand size
......
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