aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/sse2-check.h
blob: e6855136c6b71942992e6154c1cbaa23f5ebd01a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>
#include <stdlib.h>

#include "../../gcc.dg/i386-cpuid.h"

static void sse2_test (void);

int
main ()
{
  unsigned long cpu_facilities;
 
  cpu_facilities = i386_cpuid_edx ();

  /* Run SSE2 test only if host has SSE2 support.  */
  if ((cpu_facilities & bit_SSE2))
    sse2_test ();

  exit (0);
}