URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
#include <stdio.h>
|
#include <stdio.h>
|
#include <stdlib.h>
|
#include <stdlib.h>
|
|
|
#include "../../gcc.dg/i386-cpuid.h"
|
#include "../../gcc.dg/i386-cpuid.h"
|
|
|
static void sse2_test (void);
|
static void sse2_test (void);
|
|
|
int
|
int
|
main ()
|
main ()
|
{
|
{
|
unsigned long cpu_facilities;
|
unsigned long cpu_facilities;
|
|
|
cpu_facilities = i386_cpuid_edx ();
|
cpu_facilities = i386_cpuid_edx ();
|
|
|
/* Run SSE2 test only if host has SSE2 support. */
|
/* Run SSE2 test only if host has SSE2 support. */
|
if ((cpu_facilities & bit_SSE2))
|
if ((cpu_facilities & bit_SSE2))
|
sse2_test ();
|
sse2_test ();
|
|
|
exit (0);
|
exit (0);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.