]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[AArch64] Rename UNSPEC_WHILE* to match instruction mnemonics
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 9 Jan 2020 15:24:04 +0000 (15:24 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 9 Jan 2020 15:24:04 +0000 (15:24 +0000)
The UNSPEC_WHILE*s had an underscore before the condition code,
whereas almost all other SVE unspecs are taken directly from
the mnemonic.

2020-01-09  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* config/aarch64/aarch64.md (UNSPEC_WHILE_LE): Rename to...
(UNSPEC_WHILELE): ...this.
(UNSPEC_WHILE_LO): Rename to...
(UNSPEC_WHILELO): ...this.
(UNSPEC_WHILE_LS): Rename to...
(UNSPEC_WHILELS): ...this.
(UNSPEC_WHILE_LT): Rename to...
(UNSPEC_WHILELT): ...this.
* config/aarch64/iterators.md (SVE_WHILE): Update accordingly.
(cmp_op, while_optab_cmp): Likewise.
* config/aarch64/aarch64.c (aarch64_sve_move_pred_via_while): Likewise.
* config/aarch64/aarch64-sve-builtins-base.cc (svwhilele): Likewise.
(svwhilelt): Likewise.

From-SVN: r280053

gcc/ChangeLog
gcc/config/aarch64/aarch64-sve-builtins-base.cc
gcc/config/aarch64/aarch64.c
gcc/config/aarch64/aarch64.md
gcc/config/aarch64/iterators.md

index ad7f519521c206522d67e1ddf60cf208f0608528..e78cc37b537872c4afa69d0399c86a7d70a8e81e 100644 (file)
@@ -1,3 +1,19 @@
+2020-01-09  Richard Sandiford  <richard.sandiford@arm.com>
+
+       * config/aarch64/aarch64.md (UNSPEC_WHILE_LE): Rename to...
+       (UNSPEC_WHILELE): ...this.
+       (UNSPEC_WHILE_LO): Rename to...
+       (UNSPEC_WHILELO): ...this.
+       (UNSPEC_WHILE_LS): Rename to...
+       (UNSPEC_WHILELS): ...this.
+       (UNSPEC_WHILE_LT): Rename to...
+       (UNSPEC_WHILELT): ...this.
+       * config/aarch64/iterators.md (SVE_WHILE): Update accordingly.
+       (cmp_op, while_optab_cmp): Likewise.
+       * config/aarch64/aarch64.c (aarch64_sve_move_pred_via_while): Likewise.
+       * config/aarch64/aarch64-sve-builtins-base.cc (svwhilele): Likewise.
+       (svwhilelt): Likewise.
+
 2020-01-09  Richard Sandiford  <richard.sandiford@arm.com>
 
        * config/aarch64/aarch64-sve-builtins-shapes.h (unary_count): Delete.
index 10af6e9078db2c5ccbd11a479e19d6d1b93547aa..e6145b498b70873f8229ca4a81bbe5ddce8f93c9 100644 (file)
@@ -2666,8 +2666,8 @@ FUNCTION (svunpkhi, svunpk_impl, (true))
 FUNCTION (svunpklo, svunpk_impl, (false))
 FUNCTION (svuzp1, svuzp_impl, (0))
 FUNCTION (svuzp2, svuzp_impl, (1))
-FUNCTION (svwhilele, svwhile_impl, (UNSPEC_WHILE_LE, UNSPEC_WHILE_LS, true))
-FUNCTION (svwhilelt, svwhile_impl, (UNSPEC_WHILE_LT, UNSPEC_WHILE_LO, false))
+FUNCTION (svwhilele, svwhile_impl, (UNSPEC_WHILELE, UNSPEC_WHILELS, true))
+FUNCTION (svwhilelt, svwhile_impl, (UNSPEC_WHILELT, UNSPEC_WHILELO, false))
 FUNCTION (svwrffr, svwrffr_impl,)
 FUNCTION (svzip1, svzip_impl, (0))
 FUNCTION (svzip2, svzip_impl, (1))
index afe41832857a366d761323ae5d1b25e107387ab9..e3bbf128736d65d0305357d7887b608c618ddee5 100644 (file)
@@ -4272,7 +4272,7 @@ aarch64_sve_move_pred_via_while (rtx target, machine_mode mode,
 {
   rtx limit = force_reg (DImode, gen_int_mode (vl, DImode));
   target = aarch64_target_reg (target, mode);
-  emit_insn (gen_while (UNSPEC_WHILE_LO, DImode, mode,
+  emit_insn (gen_while (UNSPEC_WHILELO, DImode, mode,
                        target, const0_rtx, limit));
   return target;
 }
index 34cb99e28975de2ef10d7f4202417e2f05a870a2..509b9e59b98051d409f4125edff26aab19ffe7bd 100644 (file)
     UNSPEC_UNPACKSLO
     UNSPEC_UNPACKULO
     UNSPEC_PACK
-    UNSPEC_WHILE_LE
-    UNSPEC_WHILE_LO
-    UNSPEC_WHILE_LS
-    UNSPEC_WHILE_LT
+    UNSPEC_WHILELE
+    UNSPEC_WHILELO
+    UNSPEC_WHILELS
+    UNSPEC_WHILELT
     UNSPEC_WHILERW
     UNSPEC_WHILEWR
     UNSPEC_LDN
index dab3e4dac50c5f32d761f882c4fd00c664a7a858..2c9d9660d240c7399000ec35607387ee36816bca 100644 (file)
 (define_int_iterator SVE_CFP_TERNARY_LANE [UNSPEC_FCMLA UNSPEC_FCMLA90
                                           UNSPEC_FCMLA180 UNSPEC_FCMLA270])
 
-(define_int_iterator SVE_WHILE [UNSPEC_WHILE_LE UNSPEC_WHILE_LO
-                               UNSPEC_WHILE_LS UNSPEC_WHILE_LT])
+(define_int_iterator SVE_WHILE [UNSPEC_WHILELE UNSPEC_WHILELO
+                               UNSPEC_WHILELS UNSPEC_WHILELT])
 
 (define_int_iterator SVE2_WHILE_PTR [UNSPEC_WHILERW UNSPEC_WHILEWR])
 
                         (UNSPEC_COND_FCMLE "le")
                         (UNSPEC_COND_FCMLT "lt")
                         (UNSPEC_COND_FCMNE "ne")
-                        (UNSPEC_WHILE_LE "le")
-                        (UNSPEC_WHILE_LO "lo")
-                        (UNSPEC_WHILE_LS "ls")
-                        (UNSPEC_WHILE_LT "lt")
+                        (UNSPEC_WHILELE "le")
+                        (UNSPEC_WHILELO "lo")
+                        (UNSPEC_WHILELS "ls")
+                        (UNSPEC_WHILELT "lt")
                         (UNSPEC_WHILERW "rw")
                         (UNSPEC_WHILEWR "wr")])
 
-(define_int_attr while_optab_cmp [(UNSPEC_WHILE_LE "le")
-                                 (UNSPEC_WHILE_LO "ult")
-                                 (UNSPEC_WHILE_LS "ule")
-                                 (UNSPEC_WHILE_LT "lt")])
+(define_int_attr while_optab_cmp [(UNSPEC_WHILELE "le")
+                                 (UNSPEC_WHILELO "ult")
+                                 (UNSPEC_WHILELS "ule")
+                                 (UNSPEC_WHILELT "lt")])
 
 (define_int_attr raw_war [(UNSPEC_WHILERW "raw")
                          (UNSPEC_WHILEWR "war")])