[AArch64][obvious] Clean up parentheses and use GET_MODE_UNIT_BITSIZE in a couple...
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Wed, 15 Jun 2016 16:07:34 +0000 (16:07 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Wed, 15 Jun 2016 16:07:34 +0000 (16:07 +0000)
* config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
up parentheses.  Use GET_MODE_UNIT_BITSIZE.
(aarch64_<sur>shll2_n<mode>): Likewise.

From-SVN: r237485

gcc/ChangeLog
gcc/config/aarch64/aarch64-simd.md

index 2aa82f5a47a0a846259cfcfe6c0672f704a399a2..8cdecc8be387dbe06a2669cb773e25919631de6e 100644 (file)
@@ -1,3 +1,9 @@
+2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+       * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
+       up parentheses.  Use GET_MODE_UNIT_BITSIZE.
+       (aarch64_<sur>shll2_n<mode>): Likewise.
+
 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
 
        PR middle-end/71529
index fd4b62e888691a51ae6db5d4797083f57c0fbad7..3f8289cf7dc398faf656587c2b8f25507e616be9 100644 (file)
                           "aarch64_simd_shift_imm_bitsize_<ve_mode>" "i")]
                          VSHLL))]
   "TARGET_SIMD"
-  "*
-  int bit_width = GET_MODE_UNIT_SIZE (<MODE>mode) * BITS_PER_UNIT;
-  if (INTVAL (operands[2]) == bit_width)
   {
-    return \"shll\\t%0.<Vwtype>, %1.<Vtype>, %2\";
+    if (INTVAL (operands[2]) == GET_MODE_UNIT_BITSIZE (<MODE>mode))
+      return "shll\\t%0.<Vwtype>, %1.<Vtype>, %2";
+    else
+      return "<sur>shll\\t%0.<Vwtype>, %1.<Vtype>, %2";
   }
-  else {
-    return \"<sur>shll\\t%0.<Vwtype>, %1.<Vtype>, %2\";
-  }"
   [(set_attr "type" "neon_shift_imm_long")]
 )
 
                         (match_operand:SI 2 "immediate_operand" "i")]
                          VSHLL))]
   "TARGET_SIMD"
-  "*
-  int bit_width = GET_MODE_UNIT_SIZE (<MODE>mode) * BITS_PER_UNIT;
-  if (INTVAL (operands[2]) == bit_width)
   {
-    return \"shll2\\t%0.<Vwtype>, %1.<Vtype>, %2\";
+    if (INTVAL (operands[2]) == GET_MODE_UNIT_BITSIZE (<MODE>mode))
+      return "shll2\\t%0.<Vwtype>, %1.<Vtype>, %2";
+    else
+      return "<sur>shll2\\t%0.<Vwtype>, %1.<Vtype>, %2";
   }
-  else {
-    return \"<sur>shll2\\t%0.<Vwtype>, %1.<Vtype>, %2\";
-  }"
   [(set_attr "type" "neon_shift_imm_long")]
 )