gcc/testsuite/gcc.target/i386/enqcmd.c
raw| 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 } } */ |
| 5 | |
| 6 | #include <x86intrin.h> |
| 7 | |
| 8 | unsigned int w; |
| 9 | unsigned int array[16]; |
| 10 | |
| 11 | int |
| 12 | test_enqcmd (void) |
| 13 | { |
| 14 | return _enqcmd(&w, array); |
| 15 | } |
| 16 |