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

Function CLZ_int

arch/arm64/disassembler/decode2.c:2222–2237  ·  view source on GitHub ↗

clz_int.xml */

Source from the content-addressed store, hash-verified

2220
2221/* clz_int.xml */
2222int CLZ_int(context *ctx, Instruction *instr)
2223{
2224 int rc = DECODE_STATUS_UNMATCHED;
2225 /* class iclass_general */
2226 /* sf=x|1|S=0|11010110|opcode2=00000|opcode[5:1]=00010|op=0|Rn=xxxxx|Rd=xxxxx */
2227 if((INSWORD & 0x7FFFFC00)==0x5AC01000) {
2228 decode_fields32(ENC_CLZ_32_DP_1SRC, ctx, instr);
2229 ctx->d = UINT(ctx->Rd);
2230 ctx->n = UINT(ctx->Rn);
2231 ctx->datasize = (ctx->sf==1) ? 0x40 : 0x20;
2232 ctx->opcode = (ctx->op==0) ? CountOp_CLZ : CountOp_CLS;
2233 if(ctx->sf==0) OK(ENC_CLZ_32_DP_1SRC);
2234 if(ctx->sf==1) OK(ENC_CLZ_64_DP_1SRC);
2235 }
2236 return rc;
2237}
2238
2239/* cmeq_advsimd_reg.xml */
2240int CMEQ_advsimd_reg(context *ctx, Instruction *instr)

Callers 1

decode_iclass_dp_1srcFunction · 0.85

Calls 1

decode_fields32Function · 0.85

Tested by

no test coverage detected