From 7475160c8db55a1893abbfcdb9c926a5c0370c41 Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Fri, 3 Aug 2007 16:07:58 +0000 Subject: [PATCH] loop-1.c: Skip on powerpc targets if -mlongcall. * gcc.dg/tree-ssa/loop-1.c: Skip on powerpc targets if -mlongcall. * gcc.dg/weak/typeof-2.c: Likewise. From-SVN: r127182 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/tree-ssa/loop-1.c | 4 ++-- gcc/testsuite/gcc.dg/weak/typeof-2.c | 2 ++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0952f03..892eb9c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-08-03 Nathan Froyd + + * gcc.dg/tree-ssa/loop-1.c: Skip on powerpc targets if -mlongcall. + * gcc.dg/weak/typeof-2.c: Likewise. + 2007-08-03 Diego Novillo PR 31521 diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c index bec86be..edbee00 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c @@ -1,4 +1,6 @@ /* { dg-do compile } */ +/* -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" } */ /* On 31-bit S/390 the function address will be stored (once) in the literal pool, @@ -43,5 +45,3 @@ void xxx(void) /* { dg-final { scan-assembler-times "jsr|blink\ttr?,r18" 5 { target sh*-*-* } } } */ /* { dg-final { scan-assembler-times "Jsr \\\$r" 5 { target cris-*-* } } } */ /* { dg-final { scan-assembler-times "\[jb\]sr" 5 { target fido-*-* m68k-*-* } } } */ - - diff --git a/gcc/testsuite/gcc.dg/weak/typeof-2.c b/gcc/testsuite/gcc.dg/weak/typeof-2.c index be9b53b..31d577f 100644 --- a/gcc/testsuite/gcc.dg/weak/typeof-2.c +++ b/gcc/testsuite/gcc.dg/weak/typeof-2.c @@ -1,5 +1,7 @@ /* Test typeof with __asm redirection. */ /* { dg-do compile } */ +/* -mlongcall will cause us to place &baz3 in the CTR register. */ +/* { dg-skip-if "" { powerpc*-*-* } { "-mlongcall" } { "" } } */ /* { dg-require-weak "" } */ /* { dg-require-alias "" } */ /* { dg-options "-O2" } */ -- 2.7.4