diff options
author | Eric Botcazou <ebotcazou@libertysurf.fr> | 2004-01-26 08:39:29 +0100 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2004-01-26 07:39:29 +0000 |
commit | f210a0077b30890040da85203e62be4222315b6c (patch) | |
tree | 50cff58b1805e1c5350799a57621f0ef9b436f2f /gcc | |
parent | 5254fd7b55d138710f935d258ca7b979d7581c7c (diff) | |
download | gcc-f210a0077b30890040da85203e62be4222315b6c.zip gcc-f210a0077b30890040da85203e62be4222315b6c.tar.gz gcc-f210a0077b30890040da85203e62be4222315b6c.tar.bz2 |
sparc-ret.c: Run only in 32-bit mode.
* gcc.dg/sparc-ret.c: Run only in 32-bit mode. Don't scan
the assembly output if -m64 is passed.
From-SVN: r76621
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/sparc-ret.c | 9 |
2 files changed, 10 insertions, 5 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b192003..fa12a7e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-01-26 Eric Botcazou <ebotcazou@libertysurf.fr> + + * gcc.dg/sparc-ret.c: Run only in 32-bit mode. Don't scan + the assembly output if -m64 is passed. + 2004-01-25 Mark Mitchell <mark@codesourcery.com> PR c++/13833 @@ -20401,3 +20406,4 @@ rlsruhe.de> * New file. + diff --git a/gcc/testsuite/gcc.dg/sparc-ret.c b/gcc/testsuite/gcc.dg/sparc-ret.c index 629bbb1..3a4ddea 100644 --- a/gcc/testsuite/gcc.dg/sparc-ret.c +++ b/gcc/testsuite/gcc.dg/sparc-ret.c @@ -3,8 +3,8 @@ Making sure that Ultrasparc return instructions do not read below the stack. */ -/* { dg-do compile { target sparc*-*-* } } */ -/* { dg-options "-mcpu=ultrasparc -O -m32" } */ +/* { dg-do compile { target sparc-*-* } } */ +/* { dg-options "-mcpu=ultrasparc -O" } */ int bar (int a, int b, int c, int d, int e, int f, int g, int h) @@ -14,7 +14,7 @@ int bar (int a, int b, int c, int d, int e, int f, int g, int h) toto (&res); return h; } -/* { dg-final { scan-assembler "return\[ \t\]*%i7\\+8\n\[^\n\]*ld\[ \t\]*\\\[%sp\\+96\\\]" } } */ +/* { dg-final { global compiler_flags; if ![string match "*-m64 *" $compiler_flags] { scan-assembler "return\[ \t\]*%i7\\+8\n\[^\n\]*ld\[ \t\]*\\\[%sp\\+96\\\]" } } } */ int bar2 () { @@ -23,5 +23,4 @@ int bar2 () toto (&res); return res; } -/* { dg-final { scan-assembler "return\[ \t\]*%i7\\+8\n\[^\n\]*nop" } } */ - +/* { dg-final { global compiler_flags; if ![string match "*-m64 *" $compiler_flags] { scan-assembler "return\[ \t\]*%i7\\+8\n\[^\n\]*nop" } } } */ |