Re: [Qemu-devel] [PATCH] tcg: Optimize some forms of deposit.

2011-11-01 Thread Blue Swirl
On Mon, Oct 31, 2011 at 03:47, Alexander Graf wrote: > > On 27.10.2011, at 23:15, Richard Henderson wrote: > >> 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 sh

Re: [Qemu-devel] [PATCH] tcg: Optimize some forms of deposit.

2011-10-30 Thread Alexander Graf
On 27.10.2011, at 23:15, Richard Henderson wrote: > 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

Re: [Qemu-devel] [PATCH] tcg: Optimize some forms of deposit.

2011-10-30 Thread Blue Swirl
Thanks, applied. On Thu, Oct 27, 2011 at 21:15, Richard Henderson wrote: > 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-

[Qemu-devel] [PATCH] tcg: Optimize some forms of deposit.

2011-10-27 Thread Richard Henderson
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: Richa

Re: [Qemu-devel] [PATCH] tcg: Optimize some forms of deposit.

2011-10-27 Thread Blue Swirl
On Tue, Oct 25, 2011 at 17:25, Richard Henderson wrote: > 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-b

[Qemu-devel] [PATCH] tcg: Optimize some forms of deposit.

2011-10-25 Thread Richard Henderson
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: Richa