OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* gcc.target/i386/builtin-apply-mmx.c: Do not XFAIL on Darwin.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
sse4_1-check.h
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
#include "cpuid.h"
5
6
static void sse4_1_test (void);
7
8
#define MASK 0x2
9
10
int
11
main ()
12
{
13
unsigned int eax, ebx, ecx, edx;
14
15
if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx))
16
return 0;
17
18
/* Run SSE4.1 test only if host has SSE4.1 support. */
19
if (ecx & bit_SSE4_1)
20
sse4_1_test ();
21
22
return 0;
23
}