aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2008-03-12 22:04:19 +0000
committerPaul Brook <pbrook@gcc.gnu.org>2008-03-12 22:04:19 +0000
commit09754904669228ef0719337ef439af36ae06a54f (patch)
tree8f755944e33072f0092458c5439e1ba58925cc4c
parenta7438d6d5de9a904078a86bc34736f146e475118 (diff)
downloadgcc-09754904669228ef0719337ef439af36ae06a54f.zip
gcc-09754904669228ef0719337ef439af36ae06a54f.tar.gz
gcc-09754904669228ef0719337ef439af36ae06a54f.tar.bz2
arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
2008-03-12 Paul Brook <paul@codesourcery.com> gcc/ * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2. From-SVN: r133151
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/arm/arm.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 618cb8e..514d86c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2008-03-12 Paul Brook <paul@codesourcery.com>
+
+ gcc/
+ * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
+
2008-03-12 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (int_cond): New code iterator.
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 304b430..5f92e46 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -5070,13 +5070,14 @@ arm_size_rtx_costs (rtx x, int code, int outer_code, int *total)
{
enum machine_mode mode = GET_MODE (x);
- if (TARGET_THUMB)
+ if (TARGET_THUMB1)
{
/* XXX TBD. For now, use the standard costs. */
*total = thumb1_rtx_costs (x, code, outer_code);
return true;
}
+ /* FIXME: This makes no attempt to prefer narrow Thumb-2 instructions. */
switch (code)
{
case MEM: