target-mips: remove useless sign extension
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
153ceefb4a
commit
6462bfcded
|
@ -1455,7 +1455,6 @@ static void gen_shift_imm(CPUState *env, DisasContext *ctx, uint32_t opc,
|
||||||
opn = "sll";
|
opn = "sll";
|
||||||
break;
|
break;
|
||||||
case OPC_SRA:
|
case OPC_SRA:
|
||||||
tcg_gen_ext32s_tl(t0, t0);
|
|
||||||
tcg_gen_sari_tl(cpu_gpr[rt], t0, uimm);
|
tcg_gen_sari_tl(cpu_gpr[rt], t0, uimm);
|
||||||
opn = "sra";
|
opn = "sra";
|
||||||
break;
|
break;
|
||||||
|
@ -1855,7 +1854,6 @@ static void gen_shift (CPUState *env, DisasContext *ctx, uint32_t opc,
|
||||||
opn = "sllv";
|
opn = "sllv";
|
||||||
break;
|
break;
|
||||||
case OPC_SRAV:
|
case OPC_SRAV:
|
||||||
tcg_gen_ext32s_tl(t1, t1);
|
|
||||||
tcg_gen_andi_tl(t0, t0, 0x1f);
|
tcg_gen_andi_tl(t0, t0, 0x1f);
|
||||||
tcg_gen_sar_tl(cpu_gpr[rd], t1, t0);
|
tcg_gen_sar_tl(cpu_gpr[rd], t1, t0);
|
||||||
opn = "srav";
|
opn = "srav";
|
||||||
|
|
Loading…
Reference in a new issue