diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2014-06-11 16:58:51 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2014-06-11 16:58:51 +0000 |
commit | d9c35eee65f97e368a89148572ca8a43d0eb071c (patch) | |
tree | 3d0591f6b1eb26e1dda4162bf800619545af750e /gcc/lra-constraints.c | |
parent | 3c4c42e826b61d7b99e6be965dd1187784d2228c (diff) | |
download | gcc-d9c35eee65f97e368a89148572ca8a43d0eb071c.zip gcc-d9c35eee65f97e368a89148572ca8a43d0eb071c.tar.gz gcc-d9c35eee65f97e368a89148572ca8a43d0eb071c.tar.bz2 |
genpreds.c (const_int_start, [...]): New variables.
gcc/
* genpreds.c (const_int_start, const_int_end): New variables.
(choose_enum_order): Output CONST_INT constraints before memory
constraints.
(write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
Add CT_CONST_INT.
* ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
* ira.c (ira_setup_alts): Likewise.
* lra-constraints.c (process_alt_operands): Likewise.
* recog.c (asm_operand_ok, preprocess_constraints): Likewise.
* reload.c (find_reloads): Likewise.
From-SVN: r211473
Diffstat (limited to 'gcc/lra-constraints.c')
-rw-r--r-- | gcc/lra-constraints.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c index 8342a0a..453c578 100644 --- a/gcc/lra-constraints.c +++ b/gcc/lra-constraints.c @@ -2041,6 +2041,12 @@ process_alt_operands (int only_alternative) goto reg; break; + case CT_CONST_INT: + if (CONST_INT_P (op) + && insn_const_int_ok_for_constraint (INTVAL (op), cn)) + win = true; + break; + case CT_MEMORY: if (MEM_P (op) && satisfies_memory_constraint_p (op, cn)) |