Patchwork [aarch64] Fix misplaced parenthesis

login
register
mail settings
Submitter Marcus Shawcroft
Date July 17, 2012, 11:32 a.m.
Message ID <50054D3A.1070500@arm.com>
Download mbox | patch
Permalink /patch/171397/
State New
Headers show

Comments

Marcus Shawcroft - July 17, 2012, 11:32 a.m.
I've committed this patch to the aarch64 branch to fix a misplaced 
parenthesis.

Marcus

Patch

Index: 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)