Commit f210a007 by Eric Botcazou Committed by Eric Botcazou

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
parent 5254fd7b
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> 2004-01-25 Mark Mitchell <mark@codesourcery.com>
PR c++/13833 PR c++/13833
...@@ -20401,3 +20406,4 @@ rlsruhe.de> ...@@ -20401,3 +20406,4 @@ rlsruhe.de>
* New file. * New file.
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
Making sure that Ultrasparc return instructions do not read Making sure that Ultrasparc return instructions do not read
below the stack. */ below the stack. */
/* { dg-do compile { target sparc*-*-* } } */ /* { dg-do compile { target sparc-*-* } } */
/* { dg-options "-mcpu=ultrasparc -O -m32" } */ /* { dg-options "-mcpu=ultrasparc -O" } */
int bar (int a, int b, int c, int d, int e, int f, int g, int h) 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) ...@@ -14,7 +14,7 @@ int bar (int a, int b, int c, int d, int e, int f, int g, int h)
toto (&res); toto (&res);
return h; 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 () int bar2 ()
{ {
...@@ -23,5 +23,4 @@ int bar2 () ...@@ -23,5 +23,4 @@ int bar2 ()
toto (&res); toto (&res);
return 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" } } } */
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