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
PR middle-end/29274
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
sse2-check.h
1
#include <stdlib.h>
2
#include "cpuid.h"
3
#include "m128-check.h"
4
5
static void sse2_test (void);
6
7
int
8
main ()
9
{
10
unsigned int eax, ebx, ecx, edx;
11
12
if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx))
13
return 0;
14
15
/* Run SSE2 test only if host has SSE2 support. */
16
if (edx & bit_SSE2)
17
sse2_test ();
18
19
return 0;
20
}