This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[aarch64] Fix misplaced parenthesis
- From: Marcus Shawcroft <marcus dot shawcroft at arm dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 17 Jul 2012 12:32:10 +0100
- Subject: [aarch64] Fix misplaced parenthesis
I've committed this patch to the aarch64 branch to fix a misplaced
parenthesis.
MarcusIndex: gcc/ChangeLog.aarch64
===================================================================
--- gcc/ChangeLog.aarch64 (revision 189571)
+++ gcc/ChangeLog.aarch64 (working copy)
@@ -1,5 +1,10 @@
2012-07-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
+ * config/aarch64/aarch64.c (aarch64_rtx_costs):
+ Move misplaced parenthesis.
+
+2012-07-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
+
* config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
Do not emit lsl for a shift of 0.
(*aarch64_simd_mov<mode>): Likwise.
Index: gcc/config/aarch64/aarch64.c
===================================================================
--- gcc/config/aarch64/aarch64.c (revision 189570)
+++ gcc/config/aarch64/aarch64.c (working copy)
@@ -4191,7 +4191,7 @@
op1 = XEXP (x, 1);
*cost = COSTS_N_INSNS (1);
- if (GET_MODE_CLASS (GET_MODE (x) == MODE_INT))
+ if (GET_MODE_CLASS (GET_MODE (x)) == MODE_INT)
{
if (CONST_INT_P (op1)
&& exact_log2 (INTVAL (op1)) > 0)