OSDN Git Service

* config/tc-mips.c (mips_fix_loongson2f, mips_fix_loongson2f_nop,
authornickc <nickc>
Thu, 25 Feb 2010 20:15:46 +0000 (20:15 +0000)
committernickc <nickc>
Thu, 25 Feb 2010 20:15:46 +0000 (20:15 +0000)
commit38574ac812c34e435be5a7b79aaa35b7704a9e65
tree759fc013c90caed07ef875bb565be689e6010e4a
parent5ca1734c8fd5872d347877ed6758f8ba0c8927f0
    * config/tc-mips.c (mips_fix_loongson2f, mips_fix_loongson2f_nop,
        mips_fix_loongson2f_jump): New variables.
        (md_longopts): Add New options -mfix-loongson2f-nop/jump,
        -mno-fix-loongson2f-nop/jump.
        (md_parse_option): Initialize variables via above options.
        (options): New enums for the above options.
        (md_begin): Initialize nop_insn from LOONGSON2F_NOP_INSN.
        (fix_loongson2f, fix_loongson2f_nop, fix_loongson2f_jump):
        New functions.
        (append_insn): call fix_loongson2f().
        (mips_handle_align): Replace the implicit nops.
        * config/tc-mips.h (MAX_MEM_FOR_RS_ALIGN_CODE): Modified
        for the new mips_handle_align().
        * doc/c-mips.texi: Document the new options.

        * gas/mips/loongson-2f-2.s: New test of -mfix-loongson2f-nop.
        * gas/mips/loongson-2f-2.d: Likewise.
        * gas/mips/loongson-2f-3.s: New test of -mfix-loongson2f-jump.
        * gas/mips/loongson-2f-3.d: Likewise.
        * gas/mips/mips.exp: Run the new tests.

        * opcode/mips.h (LOONGSON2F_NOP_INSN): New macro.
12 files changed:
gas/ChangeLog
gas/config/tc-mips.c
gas/config/tc-mips.h
gas/doc/c-mips.texi
gas/testsuite/ChangeLog
gas/testsuite/gas/mips/loongson-2f-2.d [new file with mode: 0644]
gas/testsuite/gas/mips/loongson-2f-2.s [new file with mode: 0644]
gas/testsuite/gas/mips/loongson-2f-3.d [new file with mode: 0644]
gas/testsuite/gas/mips/loongson-2f-3.s [new file with mode: 0644]
gas/testsuite/gas/mips/mips.exp
include/opcode/ChangeLog
include/opcode/mips.h