Commit 981564234797ba0f948f28e35284f0730c34a059
1 parent
ec5b78cd
Fix DEBUG_TCGV.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4415 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
3 deletions
tcg/tcg-op.h
... | ... | @@ -164,7 +164,7 @@ static inline void tcg_gen_br(int label) |
164 | 164 | |
165 | 165 | static inline void tcg_gen_mov_i32(TCGv ret, TCGv arg) |
166 | 166 | { |
167 | - if (ret != arg) | |
167 | + if (GET_TCGV(ret) != GET_TCGV(arg)) | |
168 | 168 | tcg_gen_op2(INDEX_op_mov_i32, ret, arg); |
169 | 169 | } |
170 | 170 | |
... | ... | @@ -501,7 +501,7 @@ static inline void tcg_gen_remu_i32(TCGv ret, TCGv arg1, TCGv arg2) |
501 | 501 | |
502 | 502 | static inline void tcg_gen_mov_i64(TCGv ret, TCGv arg) |
503 | 503 | { |
504 | - if (ret != arg) { | |
504 | + if (GET_TCGV(ret) != GET_TCGV(arg)) { | |
505 | 505 | tcg_gen_mov_i32(ret, arg); |
506 | 506 | tcg_gen_mov_i32(TCGV_HIGH(ret), TCGV_HIGH(arg)); |
507 | 507 | } |
... | ... | @@ -732,7 +732,7 @@ static inline void tcg_gen_remu_i64(TCGv ret, TCGv arg1, TCGv arg2) |
732 | 732 | |
733 | 733 | static inline void tcg_gen_mov_i64(TCGv ret, TCGv arg) |
734 | 734 | { |
735 | - if (ret != arg) | |
735 | + if (GET_TCGV(ret) != GET_TCGV(arg)) | |
736 | 736 | tcg_gen_op2(INDEX_op_mov_i64, ret, arg); |
737 | 737 | } |
738 | 738 | ... | ... |