[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v14 25/33] target-tilegx: Handle conditional move in
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH v14 25/33] target-tilegx: Handle conditional move instructions |
Date: |
Mon, 24 Aug 2015 09:17:51 -0700 |
Signed-off-by: Richard Henderson <address@hidden>
---
target-tilegx/translate.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/target-tilegx/translate.c b/target-tilegx/translate.c
index 4e6d577..b504ae3 100644
--- a/target-tilegx/translate.c
+++ b/target-tilegx/translate.c
@@ -507,9 +507,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):
--
2.4.3
- [Qemu-devel] [PATCH v14 20/33] target-tilegx: Handle conditional branch instructions, (continued)
- [Qemu-devel] [PATCH v14 20/33] target-tilegx: Handle conditional branch instructions, Richard Henderson, 2015/08/24
- [Qemu-devel] [PATCH v14 23/33] target-tilegx: Handle bitfield instructions, Richard Henderson, 2015/08/24
- [Qemu-devel] [PATCH v14 18/33] target-tilegx: Handle post-increment load and store instructions, Richard Henderson, 2015/08/24
- [Qemu-devel] [PATCH v14 21/33] target-tilegx: Handle comparison instructions, Richard Henderson, 2015/08/24
- [Qemu-devel] [PATCH v14 24/33] target-tilegx: Handle shift instructions, Richard Henderson, 2015/08/24
- [Qemu-devel] [PATCH v14 25/33] target-tilegx: Handle conditional move instructions,
Richard Henderson <=
- [Qemu-devel] [PATCH v14 26/33] target-tilegx: Handle scalar multiply instructions, Richard Henderson, 2015/08/24
- [Qemu-devel] [PATCH v14 27/33] target-tilegx: Handle mask instructions, Richard Henderson, 2015/08/24
- [Qemu-devel] [PATCH v14 28/33] target-tilegx: Handle v1cmpeq, v1cmpne, Richard Henderson, 2015/08/24
- [Qemu-devel] [PATCH v14 29/33] target-tilegx: Handle mtspr, mfspr, Richard Henderson, 2015/08/24
- [Qemu-devel] [PATCH v14 31/33] target-tilegx: Handle v4int_l/h, Richard Henderson, 2015/08/24