diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/cet-intrin-6.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/cet-intrin-6.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/cet-intrin-6.c b/gcc/testsuite/gcc.target/i386/cet-intrin-6.c new file mode 100644 index 00000000000..dfa6d20ca26 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/cet-intrin-6.c @@ -0,0 +1,10 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -mcet" } */ +/* { dg-final { scan-assembler-times "rstorssp" 1 } } */ + +#include <immintrin.h> + +void f2 (void *__B) +{ + _rstorssp (__B); +} |