diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-22 14:39:25 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-22 14:39:25 +0000 |
commit | cf60bce4052bfbdd581ce29ffb3e328afaa72662 (patch) | |
tree | 7926aecc27032d2c516d2b367cdb62673261f4db /tcg/tcg.c | |
parent | 5cbdd273fbf5e977d14b1f06976489d8e4625a68 (diff) | |
download | qemu-cf60bce4052bfbdd581ce29ffb3e328afaa72662.tar.gz qemu-cf60bce4052bfbdd581ce29ffb3e328afaa72662.tar.bz2 qemu-cf60bce4052bfbdd581ce29ffb3e328afaa72662.zip |
fixed zero shifts (64 bit case)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4527 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tcg/tcg.c')
-rw-r--r-- | tcg/tcg.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -622,9 +622,10 @@ void tcg_gen_call(TCGContext *s, TCGv func, unsigned int flags, void tcg_gen_shifti_i64(TCGv ret, TCGv arg1, int c, int right, int arith) { - if (c == 0) - return; - if (c >= 32) { + if (c == 0) { + tcg_gen_mov_i32(ret, arg1); + tcg_gen_mov_i32(TCGV_HIGH(ret), TCGV_HIGH(arg1)); + } else if (c >= 32) { c -= 32; if (right) { if (arith) { |