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
Merged trunk at revision 161680 into branch.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
sse2-check.h
blob
e9f17f04079ea696f29cf1157f3e6df67c6ac955
1
#include <stdlib.h>
2
#include
"cpuid.h"
3
#include
"m128-check.h"
4
5
static void
sse2_test
(
void
);
6
7
static void
8
__attribute__
((
noinline
))
9
do_test
(
void
)
10
{
11
sse2_test
();
12
}
13
14
int
15
main
()
16
{
17
unsigned int
eax
,
ebx
,
ecx
,
edx
;
18
19
if
(!
__get_cpuid
(
1
, &
eax
, &
ebx
, &
ecx
, &
edx
))
20
return
0
;
21
22
/* Run SSE2 test only if host has SSE2 support. */
23
if
(
edx
&
bit_SSE2
)
24
do_test
();
25
26
return
0
;
27
}