From: Srinath Parvathaneni Date: Mon, 27 Apr 2020 15:50:58 +0000 (+0100) Subject: [GCC][PATCH][ARM]: Change arm constraint name from "e" to "Te". X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d537943fbdbaa07fdf31555e7f0d6454e4dc12a;p=gcc.git [GCC][PATCH][ARM]: Change arm constraint name from "e" to "Te". This patches changes the constraint "e" to "Te". gcc/ChangeLog: 2020-04-24 Srinath Parvathaneni * config/arm/constraints.md (e): Remove constraint. (Te): Define constraint. * config/arm/mve.md (vaddvq_): Modify constraint in operand 0 from "e" to "Te". (vaddvaq_): Likewise. (vaddvq_p_): Likewise. (vmladavq_): Likewise. (vmladavxq_s): Likewise. (vmlsdavq_s): Likewise. (vmlsdavxq_s): Likewise. (vaddvaq_p_): Likewise. (vmladavaq_): Likewise. (vmladavq_p_): Likewise. (vmladavxq_p_s): Likewise. (vmlsdavq_p_s): Likewise. (vmlsdavxq_p_s): Likewise. (vmlsdavaxq_s): Likewise. (vmlsdavaq_s): Likewise. (vmladavaxq_s): Likewise. (vmladavaq_p_): Likewise. (vmladavaxq_p_s): Likewise. (vmlsdavaq_p_s): Likewise. (vmlsdavaxq_p_s): Likewise. --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0027071f717..ecffa447903 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,29 @@ +2020-04-27 Srinath Parvathaneni + + * config/arm/constraints.md (e): Remove constraint. + (Te): Define constraint. + * config/arm/mve.md (vaddvq_): Modify constraint in + operand 0 from "e" to "Te". + (vaddvaq_): Likewise. + (vaddvq_p_): Likewise. + (vmladavq_): Likewise. + (vmladavxq_s): Likewise. + (vmlsdavq_s): Likewise. + (vmlsdavxq_s): Likewise. + (vaddvaq_p_): Likewise. + (vmladavaq_): Likewise. + (vmladavq_p_): Likewise. + (vmladavxq_p_s): Likewise. + (vmlsdavq_p_s): Likewise. + (vmlsdavxq_p_s): Likewise. + (vmlsdavaxq_s): Likewise. + (vmlsdavaq_s): Likewise. + (vmladavaxq_s): Likewise. + (vmladavaq_p_): Likewise. + (vmladavaxq_p_s): Likewise. + (vmlsdavaq_p_s): Likewise. + (vmlsdavaxq_p_s): Likewise. + 2020-04-27 Andre Vieira * config/arm/arm.c (output_move_neon): Only get the first operand if diff --git a/gcc/config/arm/constraints.md b/gcc/config/arm/constraints.md index 41a85e2713b..fed6c7c8403 100644 --- a/gcc/config/arm/constraints.md +++ b/gcc/config/arm/constraints.md @@ -32,7 +32,7 @@ ;; The following multi-letter normal constraints have been used: ;; in ARM/Thumb-2 state: Da, Db, Dc, Dd, Dn, DN, Dm, Dl, DL, Do, Dv, Dy, Di, -;; Dt, Dp, Dz, Tu +;; Dt, Dp, Dz, Tu, Te ;; in Thumb-1 state: Pa, Pb, Pc, Pd, Pe ;; in Thumb-2 state: Ha, Pj, PJ, Ps, Pt, Pu, Pv, Pw, Px, Py, Pz, Rd, Rf, Rb, Ra, ;; Rg, Ri @@ -50,8 +50,8 @@ (define_register_constraint "Uf" "TARGET_HAVE_MVE ? VFPCC_REG : NO_REGS" "MVE FPCCR register") -(define_register_constraint "e" "TARGET_HAVE_MVE ? EVEN_REG : NO_REGS" - "MVE EVEN registers @code{r0}, @code{r2}, @code{r4}, @code{r6}, @code{r8}, +(define_register_constraint "Te" "TARGET_HAVE_MVE ? EVEN_REG : NO_REGS" + "EVEN core registers @code{r0}, @code{r2}, @code{r4}, @code{r6}, @code{r8}, @code{r10}, @code{r12}, @code{r14}") (define_constraint "Rd" diff --git a/gcc/config/arm/mve.md b/gcc/config/arm/mve.md index 9cb18ef50e8..f43dabbfd4f 100644 --- a/gcc/config/arm/mve.md +++ b/gcc/config/arm/mve.md @@ -1102,7 +1102,7 @@ ;; (define_insn "mve_vaddvq_" [ - (set (match_operand:SI 0 "s_register_operand" "=e") + (set (match_operand:SI 0 "s_register_operand" "=Te") (unspec:SI [(match_operand:MVE_2 1 "s_register_operand" "w")] VADDVQ)) ] @@ -1477,7 +1477,7 @@ ;; (define_insn "mve_vaddvaq_" [ - (set (match_operand:SI 0 "s_register_operand" "=e") + (set (match_operand:SI 0 "s_register_operand" "=Te") (unspec:SI [(match_operand:SI 1 "s_register_operand" "0") (match_operand:MVE_2 2 "s_register_operand" "w")] VADDVAQ)) @@ -1492,7 +1492,7 @@ ;; (define_insn "mve_vaddvq_p_" [ - (set (match_operand:SI 0 "s_register_operand" "=e") + (set (match_operand:SI 0 "s_register_operand" "=Te") (unspec:SI [(match_operand:MVE_2 1 "s_register_operand" "w") (match_operand:HI 2 "vpr_register_operand" "Up")] VADDVQ_P)) @@ -2032,7 +2032,7 @@ ;; (define_insn "mve_vmladavq_" [ - (set (match_operand:SI 0 "s_register_operand" "=e") + (set (match_operand:SI 0 "s_register_operand" "=Te") (unspec:SI [(match_operand:MVE_2 1 "s_register_operand" "w") (match_operand:MVE_2 2 "s_register_operand" "w")] VMLADAVQ)) @@ -2047,7 +2047,7 @@ ;; (define_insn "mve_vmladavxq_s" [ - (set (match_operand:SI 0 "s_register_operand" "=e") + (set (match_operand:SI 0 "s_register_operand" "=Te") (unspec:SI [(match_operand:MVE_2 1 "s_register_operand" "w") (match_operand:MVE_2 2 "s_register_operand" "w")] VMLADAVXQ_S)) @@ -2062,7 +2062,7 @@ ;; (define_insn "mve_vmlsdavq_s" [ - (set (match_operand:SI 0 "s_register_operand" "=e") + (set (match_operand:SI 0 "s_register_operand" "=Te") (unspec:SI [(match_operand:MVE_2 1 "s_register_operand" "w") (match_operand:MVE_2 2 "s_register_operand" "w")] VMLSDAVQ_S)) @@ -2077,7 +2077,7 @@ ;; (define_insn "mve_vmlsdavxq_s" [ - (set (match_operand:SI 0 "s_register_operand" "=e") + (set (match_operand:SI 0 "s_register_operand" "=Te") (unspec:SI [(match_operand:MVE_2 1 "s_register_operand" "w") (match_operand:MVE_2 2 "s_register_operand" "w")] VMLSDAVXQ_S)) @@ -3685,7 +3685,7 @@ ;; (define_insn "mve_vaddvaq_p_" [ - (set (match_operand:SI 0 "s_register_operand" "=e") + (set (match_operand:SI 0 "s_register_operand" "=Te") (unspec:SI [(match_operand:SI 1 "s_register_operand" "0") (match_operand:MVE_2 2 "s_register_operand" "w") (match_operand:HI 3 "vpr_register_operand" "Up")] @@ -4101,7 +4101,7 @@ ;; (define_insn "mve_vmladavaq_" [ - (set (match_operand:SI 0 "s_register_operand" "=e") + (set (match_operand:SI 0 "s_register_operand" "=Te") (unspec:SI [(match_operand:SI 1 "s_register_operand" "0") (match_operand:MVE_2 2 "s_register_operand" "w") (match_operand:MVE_2 3 "s_register_operand" "w")] @@ -4117,7 +4117,7 @@ ;; (define_insn "mve_vmladavq_p_" [ - (set (match_operand:SI 0 "s_register_operand" "=e") + (set (match_operand:SI 0 "s_register_operand" "=Te") (unspec:SI [(match_operand:MVE_2 1 "s_register_operand" "w") (match_operand:MVE_2 2 "s_register_operand" "w") (match_operand:HI 3 "vpr_register_operand" "Up")] @@ -4133,7 +4133,7 @@ ;; (define_insn "mve_vmladavxq_p_s" [ - (set (match_operand:SI 0 "s_register_operand" "=e") + (set (match_operand:SI 0 "s_register_operand" "=Te") (unspec:SI [(match_operand:MVE_2 1 "s_register_operand" "w") (match_operand:MVE_2 2 "s_register_operand" "w") (match_operand:HI 3 "vpr_register_operand" "Up")] @@ -4181,7 +4181,7 @@ ;; (define_insn "mve_vmlsdavq_p_s" [ - (set (match_operand:SI 0 "s_register_operand" "=e") + (set (match_operand:SI 0 "s_register_operand" "=Te") (unspec:SI [(match_operand:MVE_2 1 "s_register_operand" "w") (match_operand:MVE_2 2 "s_register_operand" "w") (match_operand:HI 3 "vpr_register_operand" "Up")] @@ -4197,7 +4197,7 @@ ;; (define_insn "mve_vmlsdavxq_p_s" [ - (set (match_operand:SI 0 "s_register_operand" "=e") + (set (match_operand:SI 0 "s_register_operand" "=Te") (unspec:SI [(match_operand:MVE_2 1 "s_register_operand" "w") (match_operand:MVE_2 2 "s_register_operand" "w") (match_operand:HI 3 "vpr_register_operand" "Up")] @@ -4581,7 +4581,7 @@ ;; (define_insn "mve_vmlsdavaxq_s" [ - (set (match_operand:SI 0 "s_register_operand" "=e") + (set (match_operand:SI 0 "s_register_operand" "=Te") (unspec:SI [(match_operand:SI 1 "s_register_operand" "0") (match_operand:MVE_2 2 "s_register_operand" "w") (match_operand:MVE_2 3 "s_register_operand" "w")] @@ -4597,7 +4597,7 @@ ;; (define_insn "mve_vmlsdavaq_s" [ - (set (match_operand:SI 0 "s_register_operand" "=e") + (set (match_operand:SI 0 "s_register_operand" "=Te") (unspec:SI [(match_operand:SI 1 "s_register_operand" "0") (match_operand:MVE_2 2 "s_register_operand" "w") (match_operand:MVE_2 3 "s_register_operand" "w")] @@ -4613,7 +4613,7 @@ ;; (define_insn "mve_vmladavaxq_s" [ - (set (match_operand:SI 0 "s_register_operand" "=e") + (set (match_operand:SI 0 "s_register_operand" "=Te") (unspec:SI [(match_operand:SI 1 "s_register_operand" "0") (match_operand:MVE_2 2 "s_register_operand" "w") (match_operand:MVE_2 3 "s_register_operand" "w")] @@ -6298,7 +6298,7 @@ ;; (define_insn "mve_vmladavaq_p_" [ - (set (match_operand:SI 0 "s_register_operand" "=e") + (set (match_operand:SI 0 "s_register_operand" "=Te") (unspec:SI [(match_operand:SI 1 "s_register_operand" "0") (match_operand:MVE_2 2 "s_register_operand" "w") (match_operand:MVE_2 3 "s_register_operand" "w") @@ -6808,7 +6808,7 @@ ;; (define_insn "mve_vmladavaxq_p_s" [ - (set (match_operand:SI 0 "s_register_operand" "=e") + (set (match_operand:SI 0 "s_register_operand" "=Te") (unspec:SI [(match_operand:SI 1 "s_register_operand" "0") (match_operand:MVE_2 2 "s_register_operand" "w") (match_operand:MVE_2 3 "s_register_operand" "w") @@ -6825,7 +6825,7 @@ ;; (define_insn "mve_vmlsdavaq_p_s" [ - (set (match_operand:SI 0 "s_register_operand" "=e") + (set (match_operand:SI 0 "s_register_operand" "=Te") (unspec:SI [(match_operand:SI 1 "s_register_operand" "0") (match_operand:MVE_2 2 "s_register_operand" "w") (match_operand:MVE_2 3 "s_register_operand" "w") @@ -6842,7 +6842,7 @@ ;; (define_insn "mve_vmlsdavaxq_p_s" [ - (set (match_operand:SI 0 "s_register_operand" "=e") + (set (match_operand:SI 0 "s_register_operand" "=Te") (unspec:SI [(match_operand:SI 1 "s_register_operand" "0") (match_operand:MVE_2 2 "s_register_operand" "w") (match_operand:MVE_2 3 "s_register_operand" "w") @@ -9736,7 +9736,7 @@ (unspec:MVE_2 [(match_operand:SI 2 "s_register_operand" "1") (match_operand:SI 3 "mve_imm_selective_upto_8" "Rg")] VIDUPQ)) - (set (match_operand:SI 1 "s_register_operand" "=e") + (set (match_operand:SI 1 "s_register_operand" "=Te") (plus:SI (match_dup 2) (match_operand:SI 4 "immediate_operand" "i")))] "TARGET_HAVE_MVE" @@ -9772,7 +9772,7 @@ (match_operand:SI 4 "mve_imm_selective_upto_8" "Rg") (match_operand:HI 5 "vpr_register_operand" "Up")] VIDUPQ_M)) - (set (match_operand:SI 2 "s_register_operand" "=e") + (set (match_operand:SI 2 "s_register_operand" "=Te") (plus:SI (match_dup 3) (match_operand:SI 6 "immediate_operand" "i")))] "TARGET_HAVE_MVE" @@ -9804,7 +9804,7 @@ (unspec:MVE_2 [(match_operand:SI 2 "s_register_operand" "1") (match_operand:SI 3 "immediate_operand" "i")] VDDUPQ)) - (set (match_operand:SI 1 "s_register_operand" "=e") + (set (match_operand:SI 1 "s_register_operand" "=Te") (minus:SI (match_dup 2) (match_operand:SI 4 "immediate_operand" "i")))] "TARGET_HAVE_MVE" @@ -9840,7 +9840,7 @@ (match_operand:SI 4 "mve_imm_selective_upto_8" "Rg") (match_operand:HI 5 "vpr_register_operand" "Up")] VDDUPQ_M)) - (set (match_operand:SI 2 "s_register_operand" "=e") + (set (match_operand:SI 2 "s_register_operand" "=Te") (minus:SI (match_dup 3) (match_operand:SI 6 "immediate_operand" "i")))] "TARGET_HAVE_MVE" @@ -9891,7 +9891,7 @@ (subreg:SI (match_operand:DI 3 "s_register_operand" "r") 4) (match_operand:SI 4 "mve_imm_selective_upto_8" "Rg")] VDWDUPQ)) - (set (match_operand:SI 1 "s_register_operand" "=e") + (set (match_operand:SI 1 "s_register_operand" "=Te") (unspec:SI [(match_dup 2) (subreg:SI (match_dup 3) 4) (match_dup 4)] @@ -9951,7 +9951,7 @@ (match_operand:SI 5 "mve_imm_selective_upto_8" "Rg") (match_operand:HI 6 "vpr_register_operand" "Up")] VDWDUPQ_M)) - (set (match_operand:SI 1 "s_register_operand" "=e") + (set (match_operand:SI 1 "s_register_operand" "=Te") (unspec:SI [(match_dup 2) (match_dup 3) (subreg:SI (match_dup 4) 4) @@ -10008,7 +10008,7 @@ (subreg:SI (match_operand:DI 3 "s_register_operand" "r") 4) (match_operand:SI 4 "mve_imm_selective_upto_8" "Rg")] VIWDUPQ)) - (set (match_operand:SI 1 "s_register_operand" "=e") + (set (match_operand:SI 1 "s_register_operand" "=Te") (unspec:SI [(match_dup 2) (subreg:SI (match_dup 3) 4) (match_dup 4)] @@ -10068,7 +10068,7 @@ (match_operand:SI 5 "mve_imm_selective_upto_8" "Rg") (match_operand:HI 6 "vpr_register_operand" "Up")] VIWDUPQ_M)) - (set (match_operand:SI 1 "s_register_operand" "=e") + (set (match_operand:SI 1 "s_register_operand" "=Te") (unspec:SI [(match_dup 2) (match_dup 3) (subreg:SI (match_dup 4) 4)