This patch implements the codec side of the AArch64 FEATURE_ support patch, PR5491. A feature name field is added to each opcode in codec_*.txt files which is used to generate feature checks in the encoder, e.g.
switch (instr->opcode) {
case OP_cas:
# if !defined(DR_HOST_NOT_TARGET) && !defined(STANDALONE_DECODER)
if (!proc_has_feature(FEATURE_LSE))
return ENCFAIL;
# endif
enc = encode_opndsgen_08a07c00_001f03ff(pc, instr,..., di);
if (enc != ENCFAIL)
return enc;
Issues: #5475 (closed), #1569, #2626