repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update concepts branch to revision 131834
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
sse2-check.h
blob
a69333e391a09ed05e90482b778cd3f06cdbe6b7
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
}