gcc/testsuite/gcc.target/i386/pr124316.c
raw| 1 | /* { dg-do compile { target { ! ia32 } } } */ |
| 2 | /* { dg-options "-mptwrite" } */ |
| 3 | #include <x86gprintrin.h> |
| 4 | |
| 5 | unsigned long long ull; |
| 6 | unsigned u; |
| 7 | void foo() |
| 8 | { |
| 9 | _ptwrite64(ull); |
| 10 | _ptwrite32(u); |
| 11 | } |
| 12 | |
| 13 | /* { dg-final { scan-assembler-times "ptwritel" 1 } } */ |
| 14 | /* { dg-final { scan-assembler-times "ptwriteq" 1 } } */ |