| 1 |
/* |
| 2 |
* FCML - Free Code Manipulation Library. |
| 3 |
* Copyright (C) 2017 Slawomir Wojtasiak |
| 4 |
* |
| 5 |
* This library is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU Lesser General Public |
| 7 |
* License as published by the Free Software Foundation; either |
| 8 |
* version 2.1 of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* This library is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
* Lesser General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU Lesser General Public |
| 16 |
* License along with this library; if not, write to the Free Software |
| 17 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 |
*/ |
| 19 |
|
| 20 |
#ifndef SRC_FCML_OPERAND_DECORATORS_H_ |
| 21 |
#define SRC_FCML_OPERAND_DECORATORS_H_ |
| 22 |
|
| 23 |
#include "fcml_common.h" |
| 24 |
#include "fcml_def.h" |
| 25 |
|
| 26 |
typedef struct fcml_st_decorators_existence { |
| 27 |
fcml_bool bcast; |
| 28 |
fcml_bool z; |
| 29 |
fcml_bool er; |
| 30 |
fcml_bool opmask_reg; |
| 31 |
fcml_bool sae; |
| 32 |
} fcml_st_decorators_existence; |
| 33 |
|
| 34 |
typedef struct fcml_st_decorators_prefix_flags { |
| 35 |
fcml_bool b; |
| 36 |
fcml_bool z; |
| 37 |
fcml_uint8_t aaa; |
| 38 |
fcml_uint8_t ll; |
| 39 |
} fcml_st_decorators_prefix_flags; |
| 40 |
|
| 41 |
void fcml_fn_prepare_decorators_existence(fcml_operand_desc *operands, |
| 42 |
fcml_st_decorators_existence *dec_existence); |
| 43 |
|
| 44 |
/** |
| 45 |
* Decodes operand decorators for one operand. |
| 46 |
*/ |
| 47 |
fcml_ceh_error fcml_fn_op_decor_decode( |
| 48 |
fcml_st_decorators_prefix_flags *prefix_flags, |
| 49 |
fcml_operand_decorators decorators_def, fcml_st_operand *operand); |
| 50 |
|
| 51 |
#endif /* SRC_FCML_OPERAND_DECODERS_H_ */ |