cls_int.xml */
| 2180 | |
| 2181 | /* cls_int.xml */ |
| 2182 | int 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 */ |
| 2200 | int CLZ_advsimd(context *ctx, Instruction *instr) |
no test coverage detected