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
* gcc.target/i386/sse4a-check.h: New file.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
sse-check.h
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
#include "../../gcc.dg/i386-cpuid.h"
5
6
static void sse_test (void);
7
8
int
9
main ()
10
{
11
unsigned long cpu_facilities;
12
13
cpu_facilities = i386_cpuid_edx ();
14
15
/* Run SSE test only if host has SSE support. */
16
if ((cpu_facilities & bit_SSE))
17
sse_test ();
18
19
exit (0);
20
}