* gcc.dg/mips-movcc-1.c, gcc.dg/mips-movcc-2.c, gcc.dg/mips-movcc-3.c,

* gcc.dg/mips-nmadd-1.c, gcc.dg/mips-nmadd-2.c, gcc.dg/mips-rsqrt-1.c,
	* gcc.dg/mips-rsqrt-2, gcc.dg/mips-rsqrt-3.c: Add dummy asm statements
	to cope with cases where the multilib options override the dg-options.

From-SVN: r94331
This commit is contained in:
Richard Sandiford 2005-01-27 19:50:02 +00:00 committed by Richard Sandiford
parent 00adda9fd8
commit 1c71d7961c
8 changed files with 43 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2005-01-27 Richard Sandiford <rsandifo@redhat.com>
* gcc.dg/mips-movcc-1.c, gcc.dg/mips-movcc-2.c, gcc.dg/mips-movcc-3.c,
* gcc.dg/mips-nmadd-1.c, gcc.dg/mips-nmadd-2.c, gcc.dg/mips-rsqrt-1.c,
* gcc.dg/mips-rsqrt-2, gcc.dg/mips-rsqrt-3.c: Add dummy asm statements
to cope with cases where the multilib options override the dg-options.
2005-01-27 Jakub Jelinek <jakub@redhat.com>
PR c/18946

View File

@ -6,6 +6,9 @@
void ext_int (int);
#if __mips < 4
asm ("# movz movn");
#else
int
sub1 (int i, int j, int k)
{
@ -17,9 +20,14 @@ sub2 (int i, int j, long l)
{
ext_int (!l ? i : j);
}
#endif
#if __mips < 4 || __mips_soft_float
asm ("# movt");
#else
int
sub3 (int i, int j, float f)
{
ext_int (f ? i : j);
}
#endif

View File

@ -6,6 +6,9 @@
void ext_long (long);
#if __mips < 4
asm ("# movz movn");
#else
long
sub4 (long i, long j, long k)
{
@ -17,9 +20,14 @@ sub5 (long i, long j, int k)
{
ext_long (!k ? i : j);
}
#endif
#if __mips < 4 || __mips_soft_float
asm ("# movf");
#else
long
sub6 (long i, long j, float f)
{
ext_long (!f ? i : j);
}
#endif

View File

@ -7,6 +7,9 @@
/* { dg-final { scan-assembler "movn.d" } } */
/* { dg-final { scan-assembler "movf.d" } } */
#if __mips < 4 || __mips_soft_float
asm ("# movz.s movn.s movt.s movz.d movn.d movf.d");
#else
void ext_float (float);
void ext_double (double);
@ -45,3 +48,4 @@ subc (double f, double g, double h)
{
ext_double (!h ? f : g);
}
#endif

View File

@ -5,6 +5,9 @@
/* { dg-final { scan-assembler "nmsub.s" } } */
/* { dg-final { scan-assembler "nmsub.d" } } */
#if (__mips != 4 && __mips != 64) || __mips_soft_float
asm ("# nmadd.s nmadd.d nmsub.s nmsub.d");
#else
float
sub1 (float f, float g, float h)
{
@ -28,3 +31,4 @@ sub4 (double f, double g, double h)
{
return -((f * g) - h);
}
#endif

View File

@ -5,6 +5,9 @@
/* { dg-final { scan-assembler "nmsub.s" } } */
/* { dg-final { scan-assembler "nmsub.d" } } */
#if (__mips != 4 && __mips != 64) || __mips_soft_float
asm ("# nmadd.s nmadd.d nmsub.s nmsub.d");
#else
float
sub1 (float f, float g, float h)
{
@ -28,3 +31,4 @@ sub4 (double f, double g, double h)
{
return -((f * g) - h);
}
#endif

View File

@ -3,6 +3,9 @@
/* { dg-final { scan-assembler "rsqrt.d" } } */
/* { dg-final { scan-assembler "rsqrt.s" } } */
#if (__mips != 4 && __mips != 64) || __mips_soft_float
asm ("# rsqrt.d rsqrt.s");
#else
extern double sqrt(double);
extern float sqrtf(float);
@ -15,4 +18,4 @@ float bar(float x)
{
return 1.0f/sqrtf(x);
}
#endif

View File

@ -3,6 +3,9 @@
/* { dg-final { scan-assembler "rsqrt.d" } } */
/* { dg-final { scan-assembler "rsqrt.s" } } */
#if (__mips != 4 && __mips != 64) || __mips_soft_float
asm ("# rsqrt.d rsqrt.s");
#else
extern double sqrt(double);
extern float sqrtf(float);
@ -15,4 +18,4 @@ float bar(float x)
{
return sqrtf(1.0f/x);
}
#endif