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

Function CLS_int

arch/arm64/disassembler/decode2.c:2182–2197  ·  view source on GitHub ↗

cls_int.xml */

Source from the content-addressed store, hash-verified

2180
2181/* cls_int.xml */
2182int CLS_int(context *ctx, Instruction *instr)
2183{
2184 int rc = DECODE_STATUS_UNMATCHED;
2185 /* class iclass_general */
2186 /* sf=x|1|S=0|11010110|opcode2=00000|opcode[5:1]=00010|op=1|Rn=xxxxx|Rd=xxxxx */
2187 if((INSWORD & 0x7FFFFC00)==0x5AC01400) {
2188 decode_fields32(ENC_CLS_32_DP_1SRC, ctx, instr);
2189 ctx->d = UINT(ctx->Rd);
2190 ctx->n = UINT(ctx->Rn);
2191 ctx->datasize = (ctx->sf==1) ? 0x40 : 0x20;
2192 ctx->opcode = (ctx->op==0) ? CountOp_CLZ : CountOp_CLS;
2193 if(ctx->sf==0) OK(ENC_CLS_32_DP_1SRC);
2194 if(ctx->sf==1) OK(ENC_CLS_64_DP_1SRC);
2195 }
2196 return rc;
2197}
2198
2199/* clz_advsimd.xml */
2200int CLZ_advsimd(context *ctx, Instruction *instr)

Callers 1

decode_iclass_dp_1srcFunction · 0.85

Calls 1

decode_fields32Function · 0.85

Tested by

no test coverage detected