OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc4/] [gcc/] [testsuite/] [gcc.target/] [arm/] [fp16-unprototyped-1.c] - Diff between revs 313 and 519

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

Rev 313 Rev 519
/* Test promotion of __fp16 to double as arguments to unprototyped
/* Test promotion of __fp16 to double as arguments to unprototyped
   function in another compilation unit.  */
   function in another compilation unit.  */
 
 
/* { dg-do run } */
/* { dg-do run } */
/* { dg-options "-mfp16-format=ieee" } */
/* { dg-options "-mfp16-format=ieee" } */
/* { dg-additional-sources "fp16-unprototyped-2.c" } */
/* { dg-additional-sources "fp16-unprototyped-2.c" } */
 
 
#include <stdlib.h>
#include <stdlib.h>
 
 
extern int f ();
extern int f ();
 
 
static __fp16 x = 42.0;
static __fp16 x = 42.0;
static __fp16 y = -42.0;
static __fp16 y = -42.0;
 
 
int
int
main (void)
main (void)
{
{
  if (!f (x, y))
  if (!f (x, y))
    abort ();
    abort ();
  return 0;
  return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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