[4480] Use tcg_gen_not.
Revision: 4480
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4480 Author: edgar_igl Date: 2008-05-17 19:11:14 +0000 (Sat, 17 May 2008)
Log Message:
-----------
Use tcg_gen_not.
Modified Paths:
--------------
trunk/target-cris/translate.c
Modified: trunk/target-cris/translate.c
===================================================================
target-cris/translate.c +4 -4
@@ -347,7 +347,7 @@tcg_gen_shri_i32 (y, x,14 );/* m = y & ~(y >> 1) */ tcg_gen_sari_i32 (m, y,1 ); -tcg_gen_xori_i32 (m, m,0xffffffff ); +tcg_gen_not_i32 (m, m);tcg_gen_and_i32 (m, m, y);/* d = n + 2 - m */
@@ -754,7 +754,7 @@tcg_gen_add_tl (cpu_T[0 ], cpu_T[0 ], cpu_T[1 ]);tcg_gen_neg_tl (cpu_T[1 ], cpu_T[1 ]);/* CRIS flag evaluation needs ~src. */ -tcg_gen_xori_tl (cpu_T[1 ], cpu_T[1 ],-1 ); +tcg_gen_not_tl (cpu_T[1 ], cpu_T[1 ]);/* Extended arithmetics. */ t_gen_subx_carry (dc, cpu_T[0 ]);
@@ -826,7 +826,7 @@case CC_OP_CMP :tcg_gen_sub_tl (cpu_T[0 ], cpu_T[0 ], cpu_T[1 ]);/* CRIS flag evaluation needs ~src. */ -tcg_gen_xori_tl (cpu_T[1 ], cpu_T[1 ], ~0 ); +tcg_gen_not_tl (cpu_T[1 ], cpu_T[1 ]);/* Extended arithmetics. */ t_gen_subx_carry (dc, cpu_T[0 ]);
@@ -1686,7 +1686,7 @@cris_cc_mask (dc,CC_MASK_NZ );t_gen_mov_TN_reg (cpu_T[0 ], dc->op1);if (dc->op2 &8 ) -tcg_gen_xori_tl (cpu_T[0 ], cpu_T[0 ],-1 ); +tcg_gen_not_tl (cpu_T[0 ], cpu_T[0 ]);if (dc->op2 &4 )t_gen_swapw (cpu_T[0 ], cpu_T[0 ]);if (dc->op2 &2 )