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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [builtins-16.c] - Blame information for rev 853

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Copyright (C) 2003  Free Software Foundation.
2
 
3
   Verify that all the __builtin_cabs? functions are recognized
4
   by the compiler.  Complex numbers are not supported with the
5
   gcc.dg default "-pedantic-errors" option, so the dg-options
6
   overrides this.
7
 
8
   Written by Roger Sayle, 1st June 2003.  */
9
 
10
/* { dg-do compile } */
11
/* { dg-options "-O -ansi" } */
12
/* { dg-final { scan-assembler-not "__builtin_" } } */
13
 
14
double test(__complex__ double x)
15
{
16
  return __builtin_cabs (x);
17
}
18
 
19
float testf(__complex__ float x)
20
{
21
  return __builtin_cabsf (x);
22
}
23
 
24
long double testl(__complex__ long double x)
25
{
26
  return __builtin_cabsl (x);
27
}
28
 

powered by: WebSVN 2.1.0

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