OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.target/] [arm/] [aapcs/] [vfp10.c] - Diff between revs 313 and 384

Only display areas with differences | Details | Blame | View Log

Rev 313 Rev 384
/* Test AAPCS layout (VFP variant) */
/* Test AAPCS layout (VFP variant) */
 
 
/* { dg-do run { target arm*-*-eabi* } } */
/* { dg-do run { target arm*-*-eabi* } } */
/* { dg-require-effective-target arm_hard_vfp_ok } */
/* { dg-require-effective-target arm_hard_vfp_ok } */
/* { dg-require-effective-target arm32 } */
/* { dg-require-effective-target arm32 } */
/* { dg-options "-O -mfpu=vfp -mfloat-abi=hard" } */
/* { dg-options "-O -mfpu=vfp -mfloat-abi=hard" } */
 
 
#ifndef IN_FRAMEWORK
#ifndef IN_FRAMEWORK
#define VFP
#define VFP
#define TESTFILE "vfp10.c"
#define TESTFILE "vfp10.c"
 
 
__complex__ x = 1.0+2.0i;
__complex__ x = 1.0+2.0i;
 
 
struct y
struct y
{
{
  int p;
  int p;
  int q;
  int q;
  int r;
  int r;
  int s;
  int s;
} v = { 1, 2, 3, 4 };
} v = { 1, 2, 3, 4 };
 
 
struct z
struct z
{
{
  double x[4];
  double x[4];
};
};
 
 
struct z a = { 5.0, 6.0, 7.0, 8.0 };
struct z a = { 5.0, 6.0, 7.0, 8.0 };
struct z b = { 9.0, 10.0, 11.0, 12.0 };
struct z b = { 9.0, 10.0, 11.0, 12.0 };
 
 
#include "abitest.h"
#include "abitest.h"
#else
#else
  /* A variadic function passes using the base ABI */
  /* A variadic function passes using the base ABI */
  ARG(double, 11.0, R0)
  ARG(double, 11.0, R0)
  DOTS
  DOTS
  ANON(struct z, a, R2)
  ANON(struct z, a, R2)
  ANON(struct z, b, STACK+24)
  ANON(struct z, b, STACK+24)
  LAST_ANON(double, 0.5, STACK+56)
  LAST_ANON(double, 0.5, STACK+56)
#endif
#endif
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.