diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-19 07:52:10 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-19 07:52:10 +0000 |
commit | 3e8012a945a80e2eb440f545ece65812c26629c7 (patch) | |
tree | e7e05bb67d1f5a69d2f0319957c1474ca4ffba9f /gcc/config/mips | |
parent | 4e2c65ad2249e4523ae4faa7637de5cb646007f5 (diff) | |
download | gcc-3e8012a945a80e2eb440f545ece65812c26629c7.tar.gz |
* config/mips/mips.h (INITIALIZE_TRAMPOLINE): Simplify.
* config/mips/mips.c (mips_load_got): Assume Pmode == ptr_mode.
* config/mips/mips.md (extendsidi2, *extendsidi2): Merge. Don't accept
contant operands.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72671 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mips')
-rw-r--r-- | gcc/config/mips/mips.c | 3 | ||||
-rw-r--r-- | gcc/config/mips/mips.h | 6 | ||||
-rw-r--r-- | gcc/config/mips/mips.md | 15 |
3 files changed, 3 insertions, 21 deletions
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index b79ce0e2779..db087f144a6 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -1656,9 +1656,6 @@ mips_load_got (rtx base, rtx addr, int reloc) if (reloc != RELOC_CALL16 && reloc != RELOC_CALL_LO) RTX_UNCHANGING_P (mem) = 1; - if (Pmode != ptr_mode) - mem = gen_rtx_SIGN_EXTEND (Pmode, mem); - return mem; } diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index 0ac04c5e2f3..7af1026c828 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -2524,10 +2524,8 @@ typedef struct mips_args { \ func_addr = plus_constant (ADDR, 32); \ chain_addr = plus_constant (func_addr, GET_MODE_SIZE (ptr_mode)); \ - emit_move_insn (gen_rtx_MEM (ptr_mode, func_addr), \ - gen_lowpart (ptr_mode, force_reg (Pmode, FUNC))); \ - emit_move_insn (gen_rtx_MEM (ptr_mode, chain_addr), \ - gen_lowpart (ptr_mode, force_reg (Pmode, CHAIN))); \ + emit_move_insn (gen_rtx_MEM (ptr_mode, func_addr), FUNC); \ + emit_move_insn (gen_rtx_MEM (ptr_mode, chain_addr), CHAIN); \ \ /* Flush both caches. We need to flush the data cache in case \ the system has a write-back cache. */ \ diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md index 179d217fbe0..def0088fd1e 100644 --- a/gcc/config/mips/mips.md +++ b/gcc/config/mips/mips.md @@ -3479,20 +3479,7 @@ dsrl\t%3,%3,1\n\ ;; Extension insns. ;; Those for integer source operand are ordered widest source type first. -(define_expand "extendsidi2" - [(set (match_operand:DI 0 "register_operand" "") - (sign_extend:DI (match_operand:SI 1 "move_operand" "")))] - "TARGET_64BIT" -{ - if (symbolic_operand (operands[1], SImode)) - { - emit_move_insn (operands[0], - convert_memory_address (DImode, operands[1])); - DONE; - } -}) - -(define_insn "*extendsidi2" +(define_insn "extendsidi2" [(set (match_operand:DI 0 "register_operand" "=d,d") (sign_extend:DI (match_operand:SI 1 "nonimmediate_operand" "d,m")))] "TARGET_64BIT" |