Commit 90812b9d authored by Christoph Mallon's avatar Christoph Mallon
Browse files

be: Add ASM_CONSTRAINT_FLAG_SUPPORTS_ANY as shortcut for IMMEDIATE | MEMOP | REGISTER.

parent 1375a653
......@@ -35,6 +35,8 @@ typedef enum asm_constraint_flags_t {
ASM_CONSTRAINT_FLAG_SUPPORTS_MEMOP = 1u << 1,
/** input can be encoded as an immediate number */
ASM_CONSTRAINT_FLAG_SUPPORTS_IMMEDIATE = 1u << 2,
/** input/output can be in a register, in memory or an immediate */
ASM_CONSTRAINT_FLAG_SUPPORTS_ANY = ASM_CONSTRAINT_FLAG_SUPPORTS_IMMEDIATE | ASM_CONSTRAINT_FLAG_SUPPORTS_MEMOP | ASM_CONSTRAINT_FLAG_SUPPORTS_REGISTER,
/** the constraint is not supported yet by libFirm (but valid in gcc) */
ASM_CONSTRAINT_FLAG_NO_SUPPORT = 1u << 3,
/** The input is also written to */
......
......@@ -397,9 +397,7 @@ void x86_set_be_asm_constraint_support(const x86_asm_constraint_list_t *constrai
flags = ASM_CONSTRAINT_FLAG_SUPPORTS_MEMOP;
goto fine;
case MATCH_ANY:
flags = ASM_CONSTRAINT_FLAG_SUPPORTS_IMMEDIATE
| ASM_CONSTRAINT_FLAG_SUPPORTS_MEMOP
| ASM_CONSTRAINT_FLAG_SUPPORTS_REGISTER;
flags = ASM_CONSTRAINT_FLAG_SUPPORTS_ANY;
goto fine;
}
panic("invalid constraint");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment