OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
sse-check.h
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include "m128-check.h"
4
5
#include "cpuid.h"
6
7
static void sse_test (void);
8
9
int
10
main ()
11
{
12
unsigned int eax, ebx, ecx, edx;
13
14
if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx))
15
return 0;
16
17
/* Run SSE test only if host has SSE support. */
18
if (edx & bit_SSE)
19
sse_test ();
20
21
return 0;
22
}