pr27095.c: For Epiphany, add -mshort-calls.
authorJoern Rennecke <joern.rennecke@embecosm.com>
Fri, 26 Jul 2013 18:28:27 +0000 (18:28 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Fri, 26 Jul 2013 18:28:27 +0000 (19:28 +0100)
* gcc.dg/pr27095.c: For Epiphany, add -mshort-calls.
* gcc.dg/tree-ssa/loop-1.c: Likewise.

From-SVN: r201271

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr27095.c
gcc/testsuite/gcc.dg/tree-ssa/loop-1.c

index 66d770a..816f65c 100644 (file)
@@ -34,6 +34,9 @@
        * gcc.c-torture/execute/zerolen-2.x: Likewise.
        * gcc.c-torture/execute/builtins/stpcpy-chk.x: Likewise.
 
+       * gcc.dg/pr27095.c: For Epiphany, add -mshort-calls.
+       * gcc.dg/tree-ssa/loop-1.c: Likewise. 
+
 2013-07-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
        * gcc.target/arm/minmax_minus.c: Scan for absence of mov.
index 3fb4909..8d2b47b 100644 (file)
@@ -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 91220d8..b4e4f2a 100644 (file)
@@ -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.