comparison gcc/config/moxie/moxie.c @ 63:b7f97abdc517 gcc-4.6-20100522

update gcc from gcc-4.5.0 to gcc-4.6
author ryoma <e075725@ie.u-ryukyu.ac.jp>
date Mon, 24 May 2010 12:47:05 +0900
parents 77e2b8dfacca
children f6334be47118
comparison
equal deleted inserted replaced
56:3c8a44c06a95 63:b7f97abdc517
1 /* Target Code for moxie 1 /* Target Code for moxie
2 Copyright (C) 2008, 2009 Free Software Foundation 2 Copyright (C) 2008, 2009, 2010 Free Software Foundation
3 Contributed by Anthony Green. 3 Contributed by Anthony Green.
4 4
5 This file is part of GCC. 5 This file is part of GCC.
6 6
7 GCC is free software; you can redistribute it and/or modify it 7 GCC is free software; you can redistribute it and/or modify it
23 #include "coretypes.h" 23 #include "coretypes.h"
24 #include "tm.h" 24 #include "tm.h"
25 #include "rtl.h" 25 #include "rtl.h"
26 #include "regs.h" 26 #include "regs.h"
27 #include "hard-reg-set.h" 27 #include "hard-reg-set.h"
28 #include "real.h"
29 #include "insn-config.h" 28 #include "insn-config.h"
30 #include "conditions.h" 29 #include "conditions.h"
31 #include "insn-flags.h" 30 #include "insn-flags.h"
32 #include "output.h" 31 #include "output.h"
33 #include "insn-attr.h" 32 #include "insn-attr.h"
481 { 480 {
482 fprintf (f, "\tpush $sp, $r0\n"); 481 fprintf (f, "\tpush $sp, $r0\n");
483 fprintf (f, "\tldi.l $r0, 0x0\n"); 482 fprintf (f, "\tldi.l $r0, 0x0\n");
484 fprintf (f, "\tsto.l 0x8($fp), $r0\n"); 483 fprintf (f, "\tsto.l 0x8($fp), $r0\n");
485 fprintf (f, "\tpop $sp, $r0\n"); 484 fprintf (f, "\tpop $sp, $r0\n");
485 fprintf (f, "\tnop\n");
486 fprintf (f, "\tjmpa 0x0\n"); 486 fprintf (f, "\tjmpa 0x0\n");
487 } 487 }
488 488
489 /* Worker function for TARGET_TRAMPOLINE_INIT. */ 489 /* Worker function for TARGET_TRAMPOLINE_INIT. */
490 490
496 emit_block_move (m_tramp, assemble_trampoline_template (), 496 emit_block_move (m_tramp, assemble_trampoline_template (),
497 GEN_INT (TRAMPOLINE_SIZE), BLOCK_OP_NORMAL); 497 GEN_INT (TRAMPOLINE_SIZE), BLOCK_OP_NORMAL);
498 498
499 mem = adjust_address (m_tramp, SImode, 4); 499 mem = adjust_address (m_tramp, SImode, 4);
500 emit_move_insn (mem, chain_value); 500 emit_move_insn (mem, chain_value);
501 mem = adjust_address (m_tramp, SImode, 18); 501 mem = adjust_address (m_tramp, SImode, 20);
502 emit_move_insn (mem, fnaddr); 502 emit_move_insn (mem, fnaddr);
503 } 503 }
504 504
505 /* The Global `targetm' Variable. */ 505 /* The Global `targetm' Variable. */
506 506