From ff1335e2080f16f9b42b9a886c8c063f869a6eed Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Wed, 1 Nov 2017 20:47:28 +0000 Subject: [PATCH] [AArch64] Rename the internal "Upl" constraint The SVE port uses the public constraints "Upl" and "Upa" to mean "low predicate register" and "any predicate register" respectively. "Upl" was already used as an internal-only constraint by the addition patterns, so this patch renames it to "Uaa" ("two adds needed"). 2017-11-01 Richard Sandiford Alan Hayward David Sherwood gcc/ * config/aarch64/constraints.md (Upl): Rename to... (Uaa): ...this. * config/aarch64/aarch64.md (*zero_extend2_aarch64, *addsi3_aarch64_uxtw): Update accordingly. Reviewed-By: James Greenhalgh Co-Authored-By: Alan Hayward Co-Authored-By: David Sherwood From-SVN: r254326 --- gcc/ChangeLog | 10 ++++++++++ gcc/config/aarch64/aarch64.md | 4 ++-- gcc/config/aarch64/constraints.md | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fc88c85a4a6..98fc25ee90f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2017-11-01 Richard Sandiford + Alan Hayward + David Sherwood + + * config/aarch64/constraints.md (Upl): Rename to... + (Uaa): ...this. + * config/aarch64/aarch64.md + (*zero_extend2_aarch64, *addsi3_aarch64_uxtw): + Update accordingly. + 2017-11-01 Richard Sandiford Alan Hayward David Sherwood diff --git a/gcc/config/aarch64/aarch64.md b/gcc/config/aarch64/aarch64.md index bbd5174df75..ce75cf4171d 100644 --- a/gcc/config/aarch64/aarch64.md +++ b/gcc/config/aarch64/aarch64.md @@ -1562,7 +1562,7 @@ (match_operand:GPI 0 "register_operand" "=rk,rk,w,rk,r") (plus:GPI (match_operand:GPI 1 "register_operand" "%rk,rk,w,rk,rk") - (match_operand:GPI 2 "aarch64_pluslong_operand" "I,r,w,J,Upl")))] + (match_operand:GPI 2 "aarch64_pluslong_operand" "I,r,w,J,Uaa")))] "" "@ add\\t%0, %1, %2 @@ -1580,7 +1580,7 @@ (match_operand:DI 0 "register_operand" "=rk,rk,rk,r") (zero_extend:DI (plus:SI (match_operand:SI 1 "register_operand" "%rk,rk,rk,rk") - (match_operand:SI 2 "aarch64_pluslong_operand" "I,r,J,Upl"))))] + (match_operand:SI 2 "aarch64_pluslong_operand" "I,r,J,Uaa"))))] "" "@ add\\t%w0, %w1, %2 diff --git a/gcc/config/aarch64/constraints.md b/gcc/config/aarch64/constraints.md index 77c510cea0d..77ca85d929a 100644 --- a/gcc/config/aarch64/constraints.md +++ b/gcc/config/aarch64/constraints.md @@ -35,7 +35,7 @@ (and (match_code "const_int") (match_test "aarch64_uimm12_shift (ival)"))) -(define_constraint "Upl" +(define_constraint "Uaa" "@internal A constant that matches two uses of add instructions." (and (match_code "const_int") (match_test "aarch64_pluslong_strict_immedate (op, VOIDmode)"))) -- 2.30.2