This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH 6/8] Treat 'I'-'P' as separate subtype
- From: Jeff Law <law at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, rdsandiford at googlemail dot com
- Date: Tue, 10 Jun 2014 12:48:15 -0600
- Subject: Re: [PATCH 6/8] Treat 'I'-'P' as separate subtype
- Authentication-results: sourceware.org; auth=none
- References: <87sinj9hhy dot fsf at talisman dot default> <8738fj9gwh dot fsf at talisman dot default>
On 06/05/14 15:37, Richard Sandiford wrote:
This patch extends patch 4 to have a CT_CONST_INT type for CONST_INT
constraints ('I'-'P'), which are already handled by things like
constraint_satisfied_p. On its own this has little effect, since most
places handle 'I'-'P' as a separate case statement anyway. It's really
just making way for the final patch.
It might be worth adding a define_const_int_constraint so that 'I'-'P'
are less special.
* genpreds.c (const_int_start, const_int_end): New variables.
(choose_enum_order): Output CONST_INT constraints before memory
(write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
* 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.
OK once prerequisites are OK'd.