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
/
sse4_2-check.h
blob
2a397e886834a03f8b65e7419f58c68d22cc504d
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
#include
"cpuid.h"
5
6
static void
sse4_2_test
(
void
);
7
8
int
9
main
()
10
{
11
unsigned int
eax
,
ebx
,
ecx
,
edx
;
12
13
if
(!
__get_cpuid
(
1
, &
eax
, &
ebx
, &
ecx
, &
edx
))
14
return
0
;
15
16
/* Run SSE4.2 test only if host has SSE4.2 support. */
17
if
(
ecx
&
bit_SSE4_2
)
18
sse4_2_test
();
19
20
return
0
;
21
}