Skip to content

Commit

Permalink
target-sh4: optimize xtrct
Browse files Browse the repository at this point in the history
The register being 32 bit long, after a shift to the right by 16 bits,
the upper 16 bit are already cleared. There is no need to call ext16u
to clear them.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
  • Loading branch information
aurel32 committed Sep 21, 2012
1 parent ad8d25a commit f16640f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion target-sh4/translate.c
Expand Up @@ -751,7 +751,6 @@ static void _decode_opc(DisasContext * ctx)
tcg_gen_shli_i32(high, REG(B7_4), 16);
low = tcg_temp_new();
tcg_gen_shri_i32(low, REG(B11_8), 16);
tcg_gen_ext16u_i32(low, low);
tcg_gen_or_i32(REG(B11_8), high, low);
tcg_temp_free(low);
tcg_temp_free(high);
Expand Down

0 comments on commit f16640f

Please sign in to comment.