mips.c (mips_integer_op): New structure.
authorRichard Sandiford <rsandifo@redhat.com>
Sat, 3 May 2003 08:10:17 +0000 (08:10 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sat, 3 May 2003 08:10:17 +0000 (08:10 +0000)
commitb259a9a6f769bd960eb564055828e34414cef839
treeba7a4dab8a0d9dfbc4136b4be20a1621c1d3e3b3
parentd4c67b6ee3f0b8b3da21a2233397512805d93264
mips.c (mips_integer_op): New structure.

* config/mips/mips.c (mips_integer_op): New structure.
(MIPS_MAX_INTEGER_OPS): Define.
(mips_const_insns): Use mips_build_integer to determine the number
of instructions needed to load a CONST_INT.
(move_operand): Reject compound CONST_INTs.
(mips_build_shift, mips_build_lower, mips_build_integer): New fns.
(mips_move_integer): New fn.
(mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
(mips_legitimize_move): Only legitimize constants when moving
word or subword values.

From-SVN: r66419
gcc/ChangeLog
gcc/config/mips/mips.c