tcg: Optimize some forms of deposit.
commitdf072774cb0175c1ae93af18c6e1f54624831b7e
authorRichard Henderson <rth@twiddle.net>
Thu, 27 Oct 2011 21:15:00 +0000 (27 14:15 -0700)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 30 Oct 2011 09:06:23 +0000 (30 09:06 +0000)
tree110de7b288b7d54d2b5e7dd7635bb42aa1205497
parent7999f7e1273b63ec3a60d8cf2cb79cb88575744a
tcg: Optimize some forms of deposit.

If the deposit replaces the entire word, optimize to a move.

If we're inserting to the top of the word, avoid the mask of arg2
as we'll be shifting out all of the garbage and shifting in zeros.

If the host is 32-bit, reduce a 64-bit deposit to a 32-bit deposit
when possible.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
tcg/tcg-op.h