From 4dce1bf89c4eda777896ae58931dfe0b9fbec4d9 Mon Sep 17 00:00:00 2001 From: pkoning Date: Fri, 29 Oct 2010 15:29:51 +0000 Subject: * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct instruction encoding. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166063 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config/pdp11/pdp11.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gcc/config/pdp11/pdp11.c') diff --git a/gcc/config/pdp11/pdp11.c b/gcc/config/pdp11/pdp11.c index c586b9ccf6d..6a5e8ea1cf9 100644 --- a/gcc/config/pdp11/pdp11.c +++ b/gcc/config/pdp11/pdp11.c @@ -1908,8 +1908,8 @@ pdp11_function_value_regno_p (const unsigned int regno) the following should work for shared I/D: - MV #STATIC, $4 0x940Y 0x0000 <- STATIC; Y = STATIC_CHAIN_REGNUM - JMP FUNCTION 0x0058 0x0000 <- FUNCTION + MOV #STATIC, $4 01270Y 0x0000 <- STATIC; Y = STATIC_CHAIN_REGNUM + JMP @#FUNCTION 000137 0x0000 <- FUNCTION */ static void @@ -1921,11 +1921,11 @@ pdp11_trampoline_init (rtx m_tramp, tree fndecl, rtx chain_value) gcc_assert (!TARGET_SPLIT); mem = adjust_address (m_tramp, HImode, 0); - emit_move_insn (mem, GEN_INT (0x9400+STATIC_CHAIN_REGNUM)); + emit_move_insn (mem, GEN_INT (012700+STATIC_CHAIN_REGNUM)); mem = adjust_address (m_tramp, HImode, 2); emit_move_insn (mem, chain_value); mem = adjust_address (m_tramp, HImode, 4); - emit_move_insn (mem, GEN_INT (0x0058)); + emit_move_insn (mem, GEN_INT (000137)); emit_move_insn (mem, fnaddr); } -- cgit v1.2.1