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

Function CCMP_reg

arch/arm64/disassembler/decode2.c:2068–2087  ·  view source on GitHub ↗

ccmp_reg.xml */

Source from the content-addressed store, hash-verified

2066
2067/* ccmp_reg.xml */
2068int CCMP_reg(context *ctx, Instruction *instr)
2069{
2070 int rc = DECODE_STATUS_UNMATCHED;
2071 /* class iclass_general */
2072 /* sf=x|op=1|S=1|11010010|Rm=xxxxx|cond=xxxx|0|o2=0|Rn=xxxxx|o3=0|nzcv=xxxx */
2073 if((INSWORD & 0x7FE00C10)==0x7A400000) {
2074 decode_fields32(ENC_CCMP_32_CONDCMP_REG, ctx, instr);
2075 ctx->n = UINT(ctx->Rn);
2076 ctx->m = UINT(ctx->Rm);
2077 ctx->datasize = (ctx->sf==1) ? 0x40 : 0x20;
2078 ctx->sub_op = (ctx->op==1);
2079 ctx->condition = ctx->cond;
2080 ctx->flags = ctx->nzcv;
2081 if(ctx->sf==0) OK(ENC_CCMP_32_CONDCMP_REG);
2082 if(ctx->sf==1) OK(ENC_CCMP_64_CONDCMP_REG);
2083 }
2084 /* relevant operational pcode */
2085 instr->setflags = FLAGEFFECT_SETS_NORMAL;
2086 return rc;
2087}
2088
2089/* cfinv.xml */
2090int CFINV(context *ctx, Instruction *instr)

Callers 1

Calls 1

decode_fields32Function · 0.85

Tested by

no test coverage detected