Commit 88422e2ebdcdb5bf877ed0084086180570b4b52f

Authored by pbrook
1 parent a9dd6843

Fix tcg_gen_concat32_i64 on 64-bit hosts.

Signed-off-by: Paul Brook <paul@codesourcery.com>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5306 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 1 deletions
tcg/tcg-op.h
... ... @@ -1418,8 +1418,9 @@ static inline void tcg_gen_concat32_i64(TCGv dest, TCGv low, TCGv high)
1418 1418 tcg_gen_concat_i32_i64(dest, low, high);
1419 1419 #else
1420 1420 TCGv tmp = tcg_temp_new(TCG_TYPE_I64);
  1421 + tcg_gen_ext32u_i64(dest, low);
1421 1422 tcg_gen_shli_i64(tmp, high, 32);
1422   - tcg_gen_or_i64(dest, low, tmp);
  1423 + tcg_gen_or_i64(dest, dest, tmp);
1423 1424 tcg_temp_free(tmp);
1424 1425 #endif
1425 1426 }
... ...