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