diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/xsaves64-1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/xsaves64-1.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/xsaves64-1.c b/gcc/testsuite/gcc.target/i386/xsaves64-1.c new file mode 100644 index 00000000000..a3725d2d6c2 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/xsaves64-1.c @@ -0,0 +1,13 @@ +/* { dg-do compile { target { ! ia32 } } } */ +/* { dg-options "-O2 -mxsaves" } */ +/* { dg-final { scan-assembler "xsaves64\[ \\t\]" } } */ +/* { dg-final { scan-assembler "xrstors64\[ \\t\]" } } */ + +#include "x86intrin.h" + +void +test_xsaves (void *__A, long long __B) +{ + _xsaves64 (__A, __B); + _xrstors64 (__A, __B); +} |