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
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
ssse3-check.h
blob
3ca79333c7f84ec2255e63c14d4127d705f9f85e
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
#include
"cpuid.h"
5
6
static void
ssse3_test
(
void
);
7
8
static void
9
__attribute__
((
noinline
))
10
do_test
(
void
)
11
{
12
ssse3_test
();
13
}
14
15
int
16
main
()
17
{
18
unsigned int
eax
,
ebx
,
ecx
,
edx
;
19
20
if
(!
__get_cpuid
(
1
, &
eax
, &
ebx
, &
ecx
, &
edx
))
21
return
0
;
22
23
/* Run SSSE3 test only if host has SSSE3 support. */
24
if
(
ecx
&
bit_SSSE3
)
25
do_test
();
26
27
return
0
;
28
}