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 |
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
|
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
|
/* { dg-options "-O2 -msse3" } */
|
/* { dg-options "-O2 -msse3" } */
|
|
|
/* Verify that they work in both 32bit and 64bit. */
|
/* Verify that they work in both 32bit and 64bit. */
|
|
|
#include <pmmintrin.h>
|
#include <pmmintrin.h>
|
|
|
void
|
void
|
foo (char *p, int x, int y, int z)
|
foo (char *p, int x, int y, int z)
|
{
|
{
|
_mm_monitor (p, y, x);
|
_mm_monitor (p, y, x);
|
_mm_mwait (z, y);
|
_mm_mwait (z, y);
|
}
|
}
|
|
|
void
|
void
|
bar (char *p, long x, long y, long z)
|
bar (char *p, long x, long y, long z)
|
{
|
{
|
_mm_monitor (p, y, x);
|
_mm_monitor (p, y, x);
|
_mm_mwait (z, y);
|
_mm_mwait (z, y);
|
}
|
}
|
|
|
void
|
void
|
foo1 (char *p)
|
foo1 (char *p)
|
{
|
{
|
_mm_monitor (p, 0, 0);
|
_mm_monitor (p, 0, 0);
|
_mm_mwait (0, 0);
|
_mm_mwait (0, 0);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.