gcc/testsuite/gcc.target/i386/cet-intrin-8.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -mshstk" } */ |
| 3 | /* { dg-final { scan-assembler-times "wrussd" 1 { target ia32 } } } */ |
| 4 | /* { dg-final { scan-assembler-times "wruss\[d|q]" 2 { target lp64 } } } */ |
| 5 | |
| 6 | #include <immintrin.h> |
| 7 | |
| 8 | void f1 (unsigned int __A, void *__B) |
| 9 | { |
| 10 | _wrussd (__A, __B); |
| 11 | } |
| 12 | |
| 13 | #ifdef __x86_64__ |
| 14 | void f2 (unsigned long long __A, void *__B) |
| 15 | { |
| 16 | _wrussq (__A, __B); |
| 17 | } |
| 18 | #endif |