diff options
author | Stefan Weil <weil@mail.berlios.de> | 2009-09-05 18:54:10 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2009-09-16 21:26:47 +0200 |
commit | b348113d2161a339780e2d9e0479b1f9a53c6cbc (patch) | |
tree | c8bc76dcc39842d15f73d5dc6b5ed1bcba46e701 /tcg/tcg-op.h | |
parent | 2d6ee8e7e17227d5eb8c6e9a054dd88d5b37c5ae (diff) |
tcg: fix size of local variables in tcg_gen_bswap64_i64
t0, t1 must be 64 bit values, not 32 bit.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'tcg/tcg-op.h')
-rw-r--r-- | tcg/tcg-op.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tcg/tcg-op.h b/tcg/tcg-op.h index f3f2f711f1..7cb6934143 100644 --- a/tcg/tcg-op.h +++ b/tcg/tcg-op.h @@ -1441,9 +1441,8 @@ static inline void tcg_gen_bswap64_i64(TCGv_i64 ret, TCGv_i64 arg) #ifdef TCG_TARGET_HAS_bswap64_i64 tcg_gen_op2_i64(INDEX_op_bswap64_i64, ret, arg); #else - TCGv_i32 t0, t1; - t0 = tcg_temp_new_i32(); - t1 = tcg_temp_new_i32(); + TCGv_i64 t0 = tcg_temp_new_i64(); + TCGv_i64 t1 = tcg_temp_new_i64(); tcg_gen_shli_i64(t0, arg, 56); @@ -1473,8 +1472,8 @@ static inline void tcg_gen_bswap64_i64(TCGv_i64 ret, TCGv_i64 arg) tcg_gen_shri_i64(t1, arg, 56); tcg_gen_or_i64(ret, t0, t1); - tcg_temp_free_i32(t0); - tcg_temp_free_i32(t1); + tcg_temp_free_i64(t0); + tcg_temp_free_i64(t1); #endif } |