* config/tc-mips.c (MAX_NOPS): New macro.
authorRichard Sandiford <rdsandiford@googlemail.com>
Wed, 9 Mar 2005 09:20:27 +0000 (09:20 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Wed, 9 Mar 2005 09:20:27 +0000 (09:20 +0000)
commit71400594f26db178599562e5550d1991587c916c
treea50d526feccf7879965894a3b66d477e44dfc95c
parent9b91f5445f8096caa7e7b523d5384b8633f1797b
* config/tc-mips.c (MAX_NOPS): New macro.
(history): Resize to 1 + MAX_NOPS.
(fix_vr4120_class): New enumeration.
(vr4120_conflicts): New variable.
(init_vr4120_conflicts): New function.
(md_begin): Call it.
(insn_uses_reg): Constify first argument.
(classify_vr4120_insn, insns_between, nops_for_insn, nops_for_sequence)
(nops_for_insn_or_target): New functions.
(append_insn): Use the new nops_for_* functions instead of inline
delay checks.  Generalize prev_nop_frag handling to handle an
arbitrary history length.  Insert nops into the history buffer
once the number of nops in prev_nop_frag is fixed.
(emit_delays): Use nops_for_insn instead of inline delay checks.
gas/ChangeLog
gas/config/tc-mips.c