diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-26 07:39:29 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-26 07:39:29 +0000 |
commit | f2eddfe361b289cc867962cbef053ae75630f9f1 (patch) | |
tree | 50cff58b1805e1c5350799a57621f0ef9b436f2f /gcc/testsuite/gcc.dg/sparc-ret.c | |
parent | bcf8d2c079a820dc09e26618d0e6bb3d41797e15 (diff) | |
download | gcc-f2eddfe361b289cc867962cbef053ae75630f9f1.tar.gz |
* gcc.dg/sparc-ret.c: Run only in 32-bit mode. Don't scan
the assembly output if -m64 is passed.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76621 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/sparc-ret.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/sparc-ret.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/testsuite/gcc.dg/sparc-ret.c b/gcc/testsuite/gcc.dg/sparc-ret.c index 629bbb155ef..3a4ddea58ec 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" } } } */ |