ccmn_imm.xml */
| 2000 | |
| 2001 | /* ccmn_imm.xml */ |
| 2002 | int CCMN_imm(context *ctx, Instruction *instr) |
| 2003 | { |
| 2004 | int rc = DECODE_STATUS_UNMATCHED; |
| 2005 | /* class iclass_imm5u */ |
| 2006 | /* sf=x|op=0|S=1|11010010|imm5=xxxxx|cond=xxxx|1|o2=0|Rn=xxxxx|o3=0|nzcv=xxxx */ |
| 2007 | if((INSWORD & 0x7FE00C10)==0x3A400800) { |
| 2008 | decode_fields32(ENC_CCMN_32_CONDCMP_IMM, ctx, instr); |
| 2009 | ctx->n = UINT(ctx->Rn); |
| 2010 | ctx->datasize = (ctx->sf==1) ? 0x40 : 0x20; |
| 2011 | ctx->sub_op = (ctx->op==1); |
| 2012 | ctx->condition = ctx->cond; |
| 2013 | ctx->flags = ctx->nzcv; |
| 2014 | ctx->imm = ZeroExtend(ctx->imm5,ctx->datasize); |
| 2015 | if(ctx->sf==0) OK(ENC_CCMN_32_CONDCMP_IMM); |
| 2016 | if(ctx->sf==1) OK(ENC_CCMN_64_CONDCMP_IMM); |
| 2017 | } |
| 2018 | /* relevant operational pcode */ |
| 2019 | instr->setflags = FLAGEFFECT_SETS_NORMAL; |
| 2020 | return rc; |
| 2021 | } |
| 2022 | |
| 2023 | /* ccmn_reg.xml */ |
| 2024 | int CCMN_reg(context *ctx, Instruction *instr) |
no test coverage detected