Commit ca77d87c by Kazu Hirata Committed by Kazu Hirata

h8300.h: Fix formatting.

	* config/h8300/h8300.h: Fix formatting.  Remove commented-out
	definitions.

From-SVN: r49639
parent 16c96304
2002-02-09 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.h: Fix formatting. Remove commented-out
definitions.
2002-02-09 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.md (length): Correct the distance valid
for the short branch.
......
......@@ -744,19 +744,21 @@ struct cum_arg
^^^^^^ function
*/
#define TRAMPOLINE_TEMPLATE(FILE) \
do { \
if (TARGET_H8300) \
{ \
fprintf (FILE, "\tmov.w #0x1234,r3\n"); \
fprintf (FILE, "\tjmp @0x1234\n"); \
} \
else \
{ \
fprintf (FILE, "\tmov.l #0x12345678,er3\n"); \
fprintf (FILE, "\tjmp @0x123456\n"); \
} \
} while (0)
#define TRAMPOLINE_TEMPLATE(FILE) \
do \
{ \
if (TARGET_H8300) \
{ \
fprintf (FILE, "\tmov.w #0x1234,r3\n"); \
fprintf (FILE, "\tjmp @0x1234\n"); \
} \
else \
{ \
fprintf (FILE, "\tmov.l #0x12345678,er3\n"); \
fprintf (FILE, "\tjmp @0x123456\n"); \
} \
} \
while (0)
/* Length in units of the trampoline for entering a nested function. */
......@@ -766,23 +768,20 @@ struct cum_arg
FNADDR is an RTX for the address of the function's pure code.
CXT is an RTX for the static chain value for the function. */
#define INITIALIZE_TRAMPOLINE(TRAMP, FNADDR, CXT) \
{ \
enum machine_mode mode = TARGET_H8300H || TARGET_H8300S? SImode : HImode; \
emit_move_insn (gen_rtx_MEM (mode, plus_constant ((TRAMP), 2)), CXT); \
emit_move_insn (gen_rtx_MEM (mode, plus_constant ((TRAMP), 6)), FNADDR); \
if (TARGET_H8300H || TARGET_H8300S) \
emit_move_insn (gen_rtx_MEM (QImode, plus_constant ((TRAMP), 6)), \
GEN_INT (0x5A)); \
#define INITIALIZE_TRAMPOLINE(TRAMP, FNADDR, CXT) \
{ \
enum machine_mode mode = TARGET_H8300H || TARGET_H8300S ? SImode : HImode; \
emit_move_insn (gen_rtx_MEM (mode, plus_constant ((TRAMP), 2)), CXT); \
emit_move_insn (gen_rtx_MEM (mode, plus_constant ((TRAMP), 6)), FNADDR); \
if (TARGET_H8300H || TARGET_H8300S) \
emit_move_insn (gen_rtx_MEM (QImode, plus_constant ((TRAMP), 6)), \
GEN_INT (0x5A)); \
}
/* Addressing modes, and classification of registers for them. */
#define HAVE_POST_INCREMENT 1
/*#define HAVE_POST_DECREMENT 0 */
#define HAVE_PRE_DECREMENT 1
/*#define HAVE_PRE_INCREMENT 0 */
/* Macros to check register numbers against specific register classes. */
......
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