vfp-ldmdbd.c, [...]: New.

2011-02-28  Kazu Hirata  <kazu@codesourcery.com>

	gcc/testsuite/
	* gcc.target/arm/vfp-ldmdbd.c, gcc.target/arm/vfp-ldmdbs.c,
	gcc.target/arm/vfp-ldmiad.c, gcc.target/arm/vfp-ldmias.c,
	gcc.target/arm/vfp-stmdbd.c, gcc.target/arm/vfp-stmdbs.c,
	gcc.target/arm/vfp-stmiad.c, gcc.target/arm/vfp-stmias.c: New.

From-SVN: r170559
This commit is contained in:
Kazu Hirata 2011-02-28 11:43:25 +00:00 committed by Andrew Stubbs
parent 474086eb10
commit 544a301ed4
9 changed files with 123 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2011-02-28 Kazu Hirata <kazu@codesourcery.com>
* gcc.target/arm/vfp-ldmdbd.c, gcc.target/arm/vfp-ldmdbs.c,
gcc.target/arm/vfp-ldmiad.c, gcc.target/arm/vfp-ldmias.c,
gcc.target/arm/vfp-stmdbd.c, gcc.target/arm/vfp-stmdbs.c,
gcc.target/arm/vfp-stmiad.c, gcc.target/arm/vfp-stmias.c: New.
2011-02-28 Jason Merrill <jason@redhat.com>
PR c++/47906

View file

@ -0,0 +1,15 @@
/* { dg-do compile } */
/* { dg-require-effective-target arm_vfp_ok } */
/* { dg-options "-O2 -mfpu=vfp -mfloat-abi=softfp" } */
extern void bar (double);
void
foo (double *p, double a, int n)
{
do
bar (*--p + a);
while (n--);
}
/* { dg-final { scan-assembler "fldmdbd" } } */

View file

@ -0,0 +1,15 @@
/* { dg-do compile } */
/* { dg-require-effective-target arm_vfp_ok } */
/* { dg-options "-O2 -mfpu=vfp -mfloat-abi=softfp" } */
extern void baz (float);
void
foo (float *p, float a, int n)
{
do
bar (*--p + a);
while (n--);
}
/* { dg-final { scan-assembler "fldmdbs" } } */

View file

@ -0,0 +1,15 @@
/* { dg-do compile } */
/* { dg-require-effective-target arm_vfp_ok } */
/* { dg-options "-O2 -mfpu=vfp -mfloat-abi=softfp" } */
extern void bar (double);
void
foo (double *p, double a, int n)
{
do
bar (*p++ + a);
while (n--);
}
/* { dg-final { scan-assembler "fldmiad" } } */

View file

@ -0,0 +1,15 @@
/* { dg-do compile } */
/* { dg-require-effective-target arm_vfp_ok } */
/* { dg-options "-O2 -mfpu=vfp -mfloat-abi=softfp" } */
extern void baz (float);
void
foo (float *p, float a, int n)
{
do
bar (*p++ + a);
while (n--);
}
/* { dg-final { scan-assembler "fldmias" } } */

View file

@ -0,0 +1,14 @@
/* { dg-do compile } */
/* { dg-require-effective-target arm_vfp_ok } */
/* { dg-options "-O2 -mfpu=vfp -mfloat-abi=softfp" } */
void
foo (double *p, double a, double b, int n)
{
double c = a + b;
do
*--p = c;
while (n--);
}
/* { dg-final { scan-assembler "fstmdbd" } } */

View file

@ -0,0 +1,14 @@
/* { dg-do compile } */
/* { dg-require-effective-target arm_vfp_ok } */
/* { dg-options "-O2 -mfpu=vfp -mfloat-abi=softfp" } */
void
foo (float *p, float a, float b, int n)
{
float c = a + b;
do
*--p = c;
while (n--);
}
/* { dg-final { scan-assembler "fstmdbs" } } */

View file

@ -0,0 +1,14 @@
/* { dg-do compile } */
/* { dg-require-effective-target arm_vfp_ok } */
/* { dg-options "-O2 -mfpu=vfp -mfloat-abi=softfp" } */
void
foo (double *p, double a, double b, int n)
{
double c = a + b;
do
*p++ = c;
while (n--);
}
/* { dg-final { scan-assembler "fstmiad" } } */

View file

@ -0,0 +1,14 @@
/* { dg-do compile } */
/* { dg-require-effective-target arm_vfp_ok } */
/* { dg-options "-O2 -mfpu=vfp -mfloat-abi=softfp" } */
void
foo (float *p, float a, float b, int n)
{
float c = a + b;
do
*p++ = c;
while (n--);
}
/* { dg-final { scan-assembler "fstmias" } } */