]> Git Repo - qemu.git/commitdiff
target-tilegx: Handle conditional move instructions
authorRichard Henderson <[email protected]>
Sat, 22 Aug 2015 07:15:07 +0000 (00:15 -0700)
committerRichard Henderson <[email protected]>
Tue, 15 Sep 2015 14:45:33 +0000 (07:45 -0700)
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
target-tilegx/translate.c

index f15d0d0ac61d05bec1b0294fbdbfcd3e27349d70..31b6a6cc06c624165a986d685bdbb83c941d1f8b 100644 (file)
@@ -503,9 +503,16 @@ static TileExcp gen_rrr_opcode(DisasContext *dc, unsigned opext,
         break;
     case OE_RRR(CMOVEQZ, 0, X0):
     case OE_RRR(CMOVEQZ, 4, Y0):
+        tcg_gen_movcond_tl(TCG_COND_EQ, tdest, tsrca, load_zero(dc),
+                           tsrcb, load_gr(dc, dest));
+        mnemonic = "cmoveqz";
+        break;
     case OE_RRR(CMOVNEZ, 0, X0):
     case OE_RRR(CMOVNEZ, 4, Y0):
-        return TILEGX_EXCP_OPCODE_UNIMPLEMENTED;
+        tcg_gen_movcond_tl(TCG_COND_NE, tdest, tsrca, load_zero(dc),
+                           tsrcb, load_gr(dc, dest));
+        mnemonic = "cmovnez";
+        break;
     case OE_RRR(CMPEQ, 0, X0):
     case OE_RRR(CMPEQ, 0, X1):
     case OE_RRR(CMPEQ, 3, Y0):
This page took 0.020821 seconds and 4 git commands to generate.