+2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR target/67329
+ * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
+
2015-08-24 Renlin Li <renlin.li@arm.com>
* config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
COSTS_N_INSNS (3), /* cost of movsx */
COSTS_N_INSNS (2), /* cost of movzx */
8, /* "large" insn */
- 6, /* MOVE_RATIO */
+ 9, /* MOVE_RATIO */
6, /* cost for loading QImode using movzbl */
{2, 4, 2}, /* cost of loading integer registers
in QImode, HImode and SImode.
+2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR target/67329
+ * gcc.target/i386/pr67329.c: New test.
+
2015-08-24 Nathan Sidwell <nathan@acm.org>
* gcc/testsuite/gcc.dg/pr49551.c: Needs -fdata-sections.
--- /dev/null
+/* { dg-do compile { target ia32 } } */
+/* { dg-options "-O3 -fno-tree-fre -fno-tree-pre -fdump-tree-optimized -mtune=iamcu" } */
+
+int
+foo ()
+{
+ const int a[8] = { 0, 1, 2, 3, 4, 5, 6, 7 };
+ int i, sum;
+
+ sum = 0;
+ for (i = 0; i < sizeof (a) / sizeof (*a); i++)
+ sum += a[i];
+
+ return sum;
+}
+
+/* After late unrolling the above loop completely DOM should be
+ able to optimize this to return 28. */
+
+/* { dg-final { scan-tree-dump "return 28;" "optimized" } } */