vectype_conversion_fail:
first_error (_("bad vector arrangement type"));
- return AARCH64_OPND_QLF_NIL;
+ return AARCH64_OPND_QLF_ERR;
}
/* Register parsing. */
else
{
*qualifier = vectype_to_qualifier (&vectype);
- if (*qualifier == AARCH64_OPND_QLF_NIL)
+ if (*qualifier == AARCH64_OPND_QLF_ERR)
return NULL;
}
else
{
info->qualifier = vectype_to_qualifier (&vectype);
- if (info->qualifier == AARCH64_OPND_QLF_NIL)
+ if (info->qualifier == AARCH64_OPND_QLF_ERR)
goto failure;
}
break;
if (vectype.type == NT_invtype)
goto failure;
info->qualifier = vectype_to_qualifier (&vectype);
- if (info->qualifier == AARCH64_OPND_QLF_NIL)
+ if (info->qualifier == AARCH64_OPND_QLF_ERR)
goto failure;
}
}
}
info->qualifier = vectype_to_qualifier (&vectype);
- if (info->qualifier == AARCH64_OPND_QLF_NIL)
+ if (info->qualifier == AARCH64_OPND_QLF_ERR)
goto failure;
break;
if (vectype.type == NT_invtype)
info->qualifier = AARCH64_OPND_QLF_NIL;
else
- info->qualifier = vectype_to_qualifier (&vectype);
+ {
+ info->qualifier = vectype_to_qualifier (&vectype);
+ if (info->qualifier == AARCH64_OPND_QLF_ERR)
+ goto failure;
+ }
break;
case AARCH64_OPND_BARRIER_GCSB:
constrained field(s). Given the VALUE of such a field or fields, the
qualifiers CANDIDATES and the MASK (indicating which bits are valid for
operand encoding), the function returns the matching qualifier or
- AARCH64_OPND_QLF_NIL if nothing matches.
+ AARCH64_OPND_QLF_ERR if nothing matches.
N.B. CANDIDATES is a group of possible qualifiers that are valid for
one operand; it has a maximum of AARCH64_MAX_QLF_SEQ_NUM qualifiers and
if ((standard_value & mask) == (value & mask))
return candidates[i];
}
- return AARCH64_OPND_QLF_NIL;
+ return AARCH64_OPND_QLF_ERR;
}
/* Given a list of qualifier sequences, return all possible valid qualifiers
decode_sizeq (aarch64_inst *inst)
{
int idx;
- enum aarch64_opnd_qualifier qualifier;
aarch64_insn code;
aarch64_insn value, mask;
enum aarch64_field_kind fld_sz;
}
#endif /* DEBUG_AARCH64 */
- qualifier = get_qualifier_from_partial_encoding (value, candidates, mask);
+ enum aarch64_opnd_qualifier qualifier
+ = get_qualifier_from_partial_encoding (value, candidates, mask);
- if (qualifier == AARCH64_OPND_QLF_NIL)
+ if (qualifier == AARCH64_OPND_QLF_ERR)
return 0;
inst->operands[idx].qualifier = qualifier;