On 05/13/2015 02:45 AM, Bastian Koppelmann wrote:
> Signed-off-by: Bastian Koppelmann <kbast...@mail.uni-paderborn.de>
> ---
>  target-tricore/translate.c | 11 +++++++++--
>  1 file changed, 9 insertions(+), 2 deletions(-)

Reviewed-by: Richard Henderson <r...@twiddle.net>

> +    case OPC1_16_SRC_MOV_E:
> +        if (tricore_feature(env, TRICORE_FEATURE_16)) {
> +            tcg_gen_movi_tl(cpu_gpr_d[r1], const4);
> +            tcg_gen_sari_tl(cpu_gpr_d[r1+1], cpu_gpr_d[r1], 31);

You could sign-extend here at translation time, but it's also true that the
optimizer will handle this.


r~

Reply via email to