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
2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
sse4_1-check.h
blob
788f65d61cbfce186a3000bc6a2fc6b691fdad8f
1
#include <stdlib.h>
2
3
#include
"cpuid.h"
4
#include
"m128-check.h"
5
6
static void
sse4_1_test
(
void
);
7
8
#define MASK 0x2
9
10
static void
11
__attribute__
((
noinline
))
12
do_test
(
void
)
13
{
14
sse4_1_test
();
15
}
16
17
int
18
main
()
19
{
20
unsigned int
eax
,
ebx
,
ecx
,
edx
;
21
22
if
(!
__get_cpuid
(
1
, &
eax
, &
ebx
, &
ecx
, &
edx
))
23
return
0
;
24
25
/* Run SSE4.1 test only if host has SSE4.1 support. */
26
if
(
ecx
&
bit_SSE4_1
)
27
do_test
();
28
29
return
0
;
30
}