2006-12-15 H.J. Lu <hongjiu.lu@intel.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / monitor.c
blobd98a2fd24af369b86b6baa0bb85d8dd91563c3fd
1 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
2 /* { dg-options "-O2 -msse3" } */
4 /* Verify that they work in both 32bit and 64bit. */
6 #include <pmmintrin.h>
8 void
9 foo (char *p, int x, int y, int z)
11 _mm_monitor (p, y, x);
12 _mm_mwait (z, y);
15 void
16 bar (char *p, long x, long y, long z)
18 _mm_monitor (p, y, x);
19 _mm_mwait (z, y);
22 void
23 foo1 (char *p)
25 _mm_monitor (p, 0, 0);
26 _mm_mwait (0, 0);