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/] [vfp6.c] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 313 jeremybenn
/* Test AAPCS layout (VFP variant) */
2
 
3
/* { dg-do run { target arm*-*-eabi* } } */
4
/* { dg-require-effective-target arm_hard_vfp_ok } */
5
/* { dg-require-effective-target arm32 } */
6
/* { dg-options "-O -mfpu=vfp -mfloat-abi=hard" } */
7
 
8
#ifndef IN_FRAMEWORK
9
#define VFP
10
#define TESTFILE "vfp6.c"
11
 
12
__complex__ float x = 1.0+2.0i;
13
 
14
struct y
15
{
16
  int p;
17
  int q;
18
  int r;
19
  int s;
20
} v = { 1, 2, 3, 4 };
21
 
22
#include "abitest.h"
23
#else
24
  ARG(struct y, v, R0)
25
  ARG(float, 1.0f, S0)
26
  ARG(__complex__ float, x, S1)
27
  ARG(float, 2.0f, S3)
28
  ARG(double, 5.0, D2)
29
  LAST_ARG(int, 3, STACK)
30
#endif

powered by: WebSVN 2.1.0

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