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