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/] [sse4_2-check.h] - Blame information for rev 327

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

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

powered by: WebSVN 2.1.0

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