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
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
f16c-check.h
blob
af7f32c5f4f2f970123155cf7f00c8c0209ad259
1
#include <stdlib.h>
2
#include <stdio.h>
3
#include
"cpuid.h"
4
#include
"m256-check.h"
5
6
static void
f16c_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 F16C test only if host has F16C support. */
17
if
(
ecx
&
bit_F16C
)
18
{
19
f16c_test
();
20
#ifdef DEBUG
21
printf
(
"PASSED
\n
"
);
22
#endif
23
}
24
#ifdef DEBUG
25
else
26
printf
(
"SKIPPED
\n
"
);
27
#endif
28
29
return
0
;
30
}