2013-07-26 Joern Rennecke <[email protected]>
* gcc.dg/pr27095.c: For Epiphany, add -mshort-calls.
* gcc.dg/tree-ssa/loop-1.c: Likewise.
Index: gcc.dg/pr27095.c
===================================================================
--- gcc.dg/pr27095.c (revision 201267)
+++ gcc.dg/pr27095.c (working copy)
@@ -5,6 +5,9 @@
to the load from the GOT this also contains the name of the function so for
each call the function name would appear twice. */
/* { dg-options "-O2 -mno-relax-pic-calls" { target mips*-*-* } } */
+/* For epiphany, use -mshort-calls to avoid loading the address in two
+ steps using lowpart and highpart. */
+/* { dg-options "-O2 -mshort-calls" { target epiphany-*-* } } */
extern void *memset (void *, int, __SIZE_TYPE__);
extern __SIZE_TYPE__ strlen (const char *);
Index: gcc.dg/tree-ssa/loop-1.c
===================================================================
--- gcc.dg/tree-ssa/loop-1.c (revision 201267)
+++ gcc.dg/tree-ssa/loop-1.c (working copy)
@@ -2,6 +2,8 @@
/* -mlongcall will cause us to place &foo in the CTR register. */
/* { dg-skip-if "" { powerpc*-*-* } { "-mlongcall" } { "" } } */
/* { dg-options "-O1 -ftree-loop-ivcanon -funroll-loops
-fdump-tree-ivcanon-details -fdump-tree-cunroll-details -fdump-tree-optimized"
} */
+/* { dg-options "-O1 -ftree-loop-ivcanon -funroll-loops
-fdump-tree-ivcanon-details -fdump-tree-cunroll-details -fdump-tree-optimized
-mshort-calls" {target epiphany-*-*} } */
+
/* On 31-bit S/390 the function address will be stored (once) in the literal
pool,
so scan-assembler-times "foo" will return 1 even if the loop is fully
unrolled.