aarch64: Add "c" constraint
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 14 Nov 2019 13:43:50 +0000 (13:43 +0000)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 14 Nov 2019 13:43:50 +0000 (05:43 -0800)
Mirror arm in letting "c" match the condition code register.

* config/aarch64/constraints.md (c): New constraint.

From-SVN: r278223

gcc/ChangeLog
gcc/config/aarch64/constraints.md

index c96683b..ea547f7 100644 (file)
@@ -1,3 +1,7 @@
+2019-11-14  Richard Henderson  <richard.henderson@linaro.org>
+
+       * config/aarch64/constraints.md (c): New constraint.
+
 2019-11-14  Jan Hubicka  <hubicka@ucw.cz>
 
        * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
index d0c3dd5..b9e5d13 100644 (file)
 (define_register_constraint "y" "FP_LO8_REGS"
   "Floating point and SIMD vector registers V0 - V7.")
 
+(define_constraint "c"
+ "@internal The condition code register."
+  (match_operand 0 "cc_register"))
+
 (define_constraint "I"
  "A constant that can be used with an ADD operation."
  (and (match_code "const_int")