This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch ARM] PR39429 - Fix typos in ARM backend.
- From: Ramana Radhakrishnan <ramana dot radhakrishnan at arm dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Cc: mikpe at it dot uu dot se, Richard Earnshaw <Richard dot Earnshaw at arm dot com>
- Date: Wed, 23 Dec 2009 14:55:29 +0000
- Subject: [Patch ARM] PR39429 - Fix typos in ARM backend.
- Reply-to: ramana dot radhakrishnan at arm dot com
Hi,
This fixes a typo in the ARM backend for the 4.4 branch. Attached is a
patch for the 4.4 branch that Mikael had attached to the bugzilla. The
same problem appears to be in 4.3 as well.
Ok to commit on these branches after a round of regression testing.
cheers
Ramana
2009-12-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
Mikael Pettersson <mikepe@it.uu.se>
PR target/39429
* config/arm/arm.c (arm_rtx_costs_1): Fix typo.
(adjacent_mem_locations): Likewise.
Index: arm.c
===================================================================
--- arm.c (revision 155308)
+++ arm.c (working copy)
@@ -5469,7 +5469,7 @@ arm_rtx_costs_1 (rtx x, enum rtx_code ou
return true;
case ABS:
- if (GET_MODE_CLASS (mode == MODE_FLOAT))
+ if (GET_MODE_CLASS (mode) == MODE_FLOAT)
{
if (TARGET_HARD_FLOAT && (mode == SFmode || mode == DFmode))
{
@@ -7412,7 +7412,7 @@ adjacent_mem_locations (rtx a, rtx b)
/* Don't accept any offset that will require multiple
instructions to handle, since this would cause the
arith_adjacentmem pattern to output an overlong sequence. */
- if (!const_ok_for_op (PLUS, val0) || !const_ok_for_op (PLUS,
val1))
+ if (!const_ok_for_op (val0, PLUS) || !const_ok_for_op (val1,
PLUS))
return 0;
/* Don't allow an eliminable register: register elimination can
make