fixed zero shifts (64 bit case)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4527 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
bellard 2008-05-22 14:39:25 +00:00
parent 5cbdd273fb
commit cf60bce405

View File

@ -622,9 +622,10 @@ void tcg_gen_call(TCGContext *s, TCGv func, unsigned int flags,
void tcg_gen_shifti_i64(TCGv ret, TCGv arg1, void tcg_gen_shifti_i64(TCGv ret, TCGv arg1,
int c, int right, int arith) int c, int right, int arith)
{ {
if (c == 0) if (c == 0) {
return; tcg_gen_mov_i32(ret, arg1);
if (c >= 32) { tcg_gen_mov_i32(TCGV_HIGH(ret), TCGV_HIGH(arg1));
} else if (c >= 32) {
c -= 32; c -= 32;
if (right) { if (right) {
if (arith) { if (arith) {