aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2002-02-28 18:31:00 +0000
committerAndrew Macleod <amacleod@gcc.gnu.org>2002-02-28 18:31:00 +0000
commite3aaacf47148d9853760c4adec1f93e41afc3bdb (patch)
treef0989288e8d0f7625368718e35072b2c1823fad2 /gcc/config
parent7f47359462f00e740c20153e4ecfb4bfb66341d7 (diff)
downloadgcc-e3aaacf47148d9853760c4adec1f93e41afc3bdb.zip
gcc-e3aaacf47148d9853760c4adec1f93e41afc3bdb.tar.gz
gcc-e3aaacf47148d9853760c4adec1f93e41afc3bdb.tar.bz2
sparc.c (sparc64_initialize_trampoline): Generate sign extended constants.
* config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign extended constants. From-SVN: r50152
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/sparc/sparc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
index d661d30..4d8c443 100644
--- a/gcc/config/sparc/sparc.c
+++ b/gcc/config/sparc/sparc.c
@@ -6321,13 +6321,13 @@ sparc64_initialize_trampoline (tramp, fnaddr, cxt)
*/
emit_move_insn (gen_rtx_MEM (SImode, tramp),
- GEN_INT (0x83414000));
+ GEN_INT (trunc_int_for_mode (0x83414000, SImode)));
emit_move_insn (gen_rtx_MEM (SImode, plus_constant (tramp, 4)),
- GEN_INT (0xca586018));
+ GEN_INT (trunc_int_for_mode (0xca586018, SImode)));
emit_move_insn (gen_rtx_MEM (SImode, plus_constant (tramp, 8)),
- GEN_INT (0x81c14000));
+ GEN_INT (trunc_int_for_mode (0x81c14000, SImode)));
emit_move_insn (gen_rtx_MEM (SImode, plus_constant (tramp, 12)),
- GEN_INT (0xca586010));
+ GEN_INT (trunc_int_for_mode (0xca586010, SImode)));
emit_move_insn (gen_rtx_MEM (DImode, plus_constant (tramp, 16)), cxt);
emit_move_insn (gen_rtx_MEM (DImode, plus_constant (tramp, 24)), fnaddr);
emit_insn (gen_flushdi (validize_mem (gen_rtx_MEM (DImode, tramp))));