Commit 40e5049d by Joern Rennecke Committed by Joern Rennecke

pr27095.c: For Epiphany, add -mshort-calls.

	* gcc.dg/pr27095.c: For Epiphany, add -mshort-calls.
	* gcc.dg/tree-ssa/loop-1.c: Likewise.

From-SVN: r201271
parent 38dbc834
...@@ -34,6 +34,9 @@ ...@@ -34,6 +34,9 @@
* gcc.c-torture/execute/zerolen-2.x: Likewise. * gcc.c-torture/execute/zerolen-2.x: Likewise.
* gcc.c-torture/execute/builtins/stpcpy-chk.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> 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* gcc.target/arm/minmax_minus.c: Scan for absence of mov. * gcc.target/arm/minmax_minus.c: Scan for absence of mov.
......
...@@ -5,6 +5,9 @@ ...@@ -5,6 +5,9 @@
to the load from the GOT this also contains the name of the function so for to the load from the GOT this also contains the name of the function so for
each call the function name would appear twice. */ each call the function name would appear twice. */
/* { dg-options "-O2 -mno-relax-pic-calls" { target mips*-*-* } } */ /* { 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 void *memset (void *, int, __SIZE_TYPE__);
extern __SIZE_TYPE__ strlen (const char *); extern __SIZE_TYPE__ strlen (const char *);
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
/* -mlongcall will cause us to place &foo in the CTR register. */ /* -mlongcall will cause us to place &foo in the CTR register. */
/* { dg-skip-if "" { powerpc*-*-* } { "-mlongcall" } { "" } } */ /* { 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" } */
/* { 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, /* 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. so scan-assembler-times "foo" will return 1 even if the loop is fully unrolled.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment