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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [fma4-check.h] - Blame information for rev 318

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 318 jeremybenn
#include <stdlib.h>
2
 
3
#include "cpuid.h"
4
 
5
static void fma4_test (void);
6
 
7
static void
8
__attribute__ ((noinline))
9
do_test (void)
10
{
11
  fma4_test ();
12
}
13
 
14
int
15
main ()
16
{
17
  unsigned int eax, ebx, ecx, edx;
18
 
19
  if (!__get_cpuid (0x80000001, &eax, &ebx, &ecx, &edx))
20
    return 0;
21
 
22
  /* Run FMA4 test only if host has FMA4 support.  */
23
  if (ecx & bit_FMA4)
24
    do_test ();
25
 
26
  exit (0);
27
}

powered by: WebSVN 2.1.0

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