Re: [Qemu-devel] tcg shift ops and magnitudes larger than register size

2011-01-15 Thread Edgar E. Iglesias
On Fri, Jan 14, 2011 at 11:26:21PM +, Stuart Brady wrote: > On Thu, Jan 13, 2011 at 09:56:35AM +0100, Edgar E. Iglesias wrote: > > On Wed, Jan 12, 2011 at 08:13:45PM -0500, Mike Frysinger wrote: > > > are there any rules with the tcg sar/shl/shr ops and their magnitudes > > > ? such as "magnit

Re: [Qemu-devel] tcg shift ops and magnitudes larger than register size

2011-01-14 Thread Stuart Brady
On Thu, Jan 13, 2011 at 09:56:35AM +0100, Edgar E. Iglesias wrote: > On Wed, Jan 12, 2011 at 08:13:45PM -0500, Mike Frysinger wrote: > > are there any rules with the tcg sar/shl/shr ops and their magnitudes > > ? such as "magnitudes cannot be larger than the register size" ? > > Yes, the result i

Re: [Qemu-devel] tcg shift ops and magnitudes larger than register size

2011-01-13 Thread Edgar E. Iglesias
On Wed, Jan 12, 2011 at 08:13:45PM -0500, Mike Frysinger wrote: > are there any rules with the tcg sar/shl/shr ops and their magnitudes > ? such as "magnitudes cannot be larger than the register size" ? Yes, the result is undefined in those cases. > i have a 32bit register with the value of 0x1

[Qemu-devel] tcg shift ops and magnitudes larger than register size

2011-01-12 Thread Mike Frysinger
are there any rules with the tcg sar/shl/shr ops and their magnitudes ? such as "magnitudes cannot be larger than the register size" ? i have a 32bit register with the value of 0x1230002 and when i attempt to do a sari with a value >=32, it gives me 0x918001 (a single shift right has been done).