(COP_INSN): New macro.
(is_opcode_valid): Use them.
(macro) <ld_st>: Use them. Don't accept coprocessor load store
insns based on the ISA if CPU is NO_ISA_COP.
<copz>: Likewise for coprocessor operations.
testsuite/
* gas/mips/mips1-fp.s, gas/mips/mips1-fp.d, gas/mips/mips1-fp.l:
New tests.
* gas/mips/mips.exp: Run them.
+2009-01-08 Adam Nemet <anemet@caviumnetworks.com>
+
+ * config/tc-mips.c (NO_ISA_COP): New macro.
+ (COP_INSN): New macro.
+ (is_opcode_valid): Use them.
+ (macro) <ld_st>: Use them. Don't accept coprocessor load store
+ insns based on the ISA if CPU is NO_ISA_COP.
+ <copz>: Likewise for coprocessor operations.
+
2008-10-09 Eric Botcazou <ebotcazou@adacore.com>
* dw2gencfi.c (cfi_finish): Deal with md_fix_up_eh_frame.
/* Returns true for a (non floating-point) coprocessor instruction. Reading
or writing the condition code is only possible on the coprocessors and
these insns are not marked with INSN_COP. Thus for these insns use the
- condition-code flags unless this is the floating-point coprocessor. */
+ condition-code flags. */
#define COP_INSN(PINFO) \
(PINFO != INSN_MACRO \
- && (((PINFO) & INSN_COP) \
- || ((PINFO) & (INSN_READ_COND_CODE | INSN_WRITE_COND_CODE) \
- && ((PINFO) & (FP_S | FP_D)) == 0)))
+ && ((PINFO) & (FP_S | FP_D)) == 0 \
+ && ((PINFO) & (INSN_COP | INSN_READ_COND_CODE | INSN_WRITE_COND_CODE)))
/* MIPS PIC level. */
+2009-01-08 Adam Nemet <anemet@caviumnetworks.com>
+
+ * gas/mips/mips1-fp.s, gas/mips/mips1-fp.d, gas/mips/mips1-fp.l:
+ New tests.
+ * gas/mips/mips.exp: Run them.
+
2008-09-15 Alan Modra <amodra@bigpond.net.au>
* gas/all/gas.exp: Don't run redef tests on a bunch of targets.
run_dump_test_arches "abs" [mips_arch_list_matching mips1]
run_dump_test_arches "add" [mips_arch_list_matching mips1]
run_dump_test_arches "and" [mips_arch_list_matching mips1]
+ run_dump_test_arches "mips1-fp" [mips_arch_list_matching mips1]
+ run_list_test_arches "mips1-fp" "-32 -msoft-float" \
+ [mips_arch_list_matching mips1]
run_dump_test "break20"
run_dump_test "trap20"