MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / CCMN_imm

Function CCMN_imm

arch/arm64/disassembler/decode2.c:2002–2021  ·  view source on GitHub ↗

ccmn_imm.xml */

Source from the content-addressed store, hash-verified

2000
2001/* ccmn_imm.xml */
2002int 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 */
2024int CCMN_reg(context *ctx, Instruction *instr)

Callers 1

Calls 1

decode_fields32Function · 0.85

Tested by

no test coverage detected