This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [AArch64 10/14] Add mov<mode>cc definition for GPF case.
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Philipp Tomsich <philipp dot tomsich at theobroma-systems dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 18 Feb 2014 13:40:00 -0800
- Subject: Re: [AArch64 10/14] Add mov<mode>cc definition for GPF case.
- Authentication-results: sourceware.org; auth=none
- References: <1392757787-25629-1-git-send-email-philipp dot tomsich at theobroma-systems dot com> <1392757787-25629-11-git-send-email-philipp dot tomsich at theobroma-systems dot com>
On Tue, Feb 18, 2014 at 1:09 PM, Philipp Tomsich
<philipp.tomsich@theobroma-systems.com> wrote:
Can you add a testcase or two for this patch?
Thanks,
Andrew Pinski
> ---
> gcc/config/aarch64/aarch64.md | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
>
> diff --git a/gcc/config/aarch64/aarch64.md b/gcc/config/aarch64/aarch64.md
> index c72d123..b6453b6 100644
> --- a/gcc/config/aarch64/aarch64.md
> +++ b/gcc/config/aarch64/aarch64.md
> @@ -2460,6 +2460,25 @@
> }
> )
>
> +(define_expand "mov<mode>cc"
> + [(set (match_operand:GPF 0 "register_operand" "")
> + (if_then_else:GPF (match_operand 1 "aarch64_comparison_operator" "")
> + (match_operand:GPF 2 "register_operand" "")
> + (match_operand:GPF 3 "register_operand" "")))]
> + ""
> + {
> + rtx ccreg;
> + enum rtx_code code = GET_CODE (operands[1]);
> +
> + if (code == UNEQ || code == LTGT)
> + FAIL;
> +
> + ccreg = aarch64_gen_compare_reg (code, XEXP (operands[1], 0),
> + XEXP (operands[1], 1));
> + operands[1] = gen_rtx_fmt_ee (code, VOIDmode, ccreg, const0_rtx);
> + }
> +)
> +
> (define_expand "mov<GPF:mode><GPI:mode>cc"
> [(set (match_operand:GPI 0 "register_operand" "")
> (if_then_else:GPI (match_operand 1 "aarch64_comparison_operator" "")
> --
> 1.9.0
>