diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/rtm-xbegin-1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/rtm-xbegin-1.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/rtm-xbegin-1.c b/gcc/testsuite/gcc.target/i386/rtm-xbegin-1.c new file mode 100644 index 00000000000..caced5f5f96 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/rtm-xbegin-1.c @@ -0,0 +1,11 @@ +/* { dg-do compile } */ +/* { dg-options "-mrtm" } */ +/* { dg-final { scan-assembler "\txbegin" } } */ + +#include <immintrin.h> + +unsigned int +rtm_test (void) +{ + return _xbegin (); +} |