diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-21 13:48:32 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-21 13:48:32 +0000 |
commit | 36aa55dcd9775a2164d831d3d3e2a16977995f14 (patch) | |
tree | 8cae41e48031febf5bfbc04d0c84c639f62ed2ab /target-ppc | |
parent | 436d124b7d538b1fd9cf72edf17770664c309856 (diff) |
Add concat_i32_i64 op.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5280 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc')
-rw-r--r-- | target-ppc/translate.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 2d646b9afc..275f7807c9 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -5300,12 +5300,7 @@ static always_inline void gen_load_gpr64(TCGv t, int reg) { #if defined(TARGET_PPC64) tcg_gen_mov_i64(t, cpu_gpr[reg]); #else - tcg_gen_extu_i32_i64(t, cpu_gprh[reg]); - tcg_gen_shli_i64(t, t, 32); - TCGv tmp = tcg_temp_local_new(TCG_TYPE_I64); - tcg_gen_extu_i32_i64(tmp, cpu_gpr[reg]); - tcg_gen_or_i64(t, t, tmp); - tcg_temp_free(tmp); + tcg_gen_concat_i32_i64(t, cpu_gpr[reg], cpu_gprh[reg]); #endif } |