Add GCC support to ENQCMD.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / enqcmd.c
blob2927f201f4b13e496b13f702f2b0b2fe87623f45
1 /* { dg-do compile } */
2 /* { dg-options "-menqcmd -O2" } */
3 /* { dg-final { scan-assembler-times "\tenqcmd" 1 } } */
4 /* { dg-final { scan-assembler-times "\tsete" 1 } } */
6 #include <x86intrin.h>
8 unsigned int w;
9 unsigned int array[16];
11 int
12 test_enqcmd (void)
14 return _enqcmd(&w, array);